[Samba] samba-tool backup online Not enough virtual memory or paging file quota is available to complete the specified operation.

Peter NerĂ¡d nerad.peter at gmail.com
Thu Nov 15 19:17:19 UTC 2018

Hi i installed samba 4.9.1 from source on centos 7.


I need to setup backup script .


I cannot use samba-tool:



samba-tool domain backup offline --targetdir=/backupdir


Gives me :


Usage: samba-tool domain backup <subcommand>


samba-tool domain backup: error: no such option: --targetdir





Samba-tool domain backup -h


Gives me:


Usage: samba-tool domain backup <subcommand>


Create or restore a backup of the domain.




  -h, --help  show this help message and exit



Available subcommands:

  online   - Copy a running DC's current DB into a backup tar file.

  rename   - Copy a running DC's DB to backup file, renaming the domain in
the process.

  restore  - Restore the domain's DB from a backup-file.

For more help on a specific subcommand, please type: samba-tool domain
backup <subcommand> (-h|--help)


There is no offline subbcomand L





samba-tool domain backup online --targetdir=/root --server=localhost

Password for [SAD\Administrator]:

workgroup is SAD

realm is sad.local

Calling bare provision

Looking up IPv4 addresses

Looking up IPv6 addresses

No IPv6 address will be assigned

Setting up share.ldb

Setting up secrets.ldb

Setting up the registry

Setting up the privileges database

Setting up idmap db

Setting up SAM db

Setting up sam.ldb partitions and settings

Setting up sam.ldb rootDSE

Pre-loading the Samba 4 and AD schema

Unable to determine the DomainSID, can not enforce uniqueness constraint on
local domainSIDs


A Kerberos configuration suitable for Samba AD has been generated at

Merge the contents of this file with your system krb5.conf or replace it
with this one. Do not create a symlink!

Provision OK for domain DN DC=sad,DC=local

Starting replication


ERROR(runtime): uncaught exception - (3221225495, '{Not Enough Quota} Not
enough virtual memory or paging file quota is available to complete the
specified operation.')

line 177, in _run

    return self.run(*args, **kwargs)

y", line 227, in run

    dns_backend='SAMBA_INTERNAL', targetdir=tmpdir)

  File "/usr/local/samba/lib64/python2.7/site-packages/samba/join.py", line
1517, in join_clone


  File "/usr/local/samba/lib64/python2.7/site-packages/samba/join.py", line
1623, in do_join


  File "/usr/local/samba/lib64/python2.7/site-packages/samba/join.py", line
942, in join_replicate

    repl = ctx.create_replicator(repl_creds, binding_options)

  File "/usr/local/samba/lib64/python2.7/site-packages/samba/join.py", line
914, in create_replicator

    ctx.lp, repl_creds, ctx.local_samdb, ctx.invocation_id)

  File "/usr/local/samba/lib64/python2.7/site-packages/samba/drs_utils.py",
line 194, in __init__

    self.drs = drsuapi.drsuapi(binding_string, lp, creds)



What i can do for that message ?



More information about the samba mailing list