[backup] Ajout des commandes predump
This commit is contained in:
parent
f63fd5a463
commit
8b87c092e8
1 changed files with 2 additions and 0 deletions
|
@ -35,6 +35,8 @@ if __name__ == "__main__":
|
|||
$Conf{BackupFilesExclude} = {
|
||||
%(excludes)s
|
||||
};""" % {'shares' : "', '".join(backup_folders.keys()), 'excludes' : "\n ".join(["'%s' => ['lost+found']," % nom for nom in backup_folders.keys()])})
|
||||
if backups.DumpPreUserCmd[hoteRsync]:
|
||||
fichier.write("""\n$Conf{DumpPreUserCmd} = '%(dp)s';""" % {'dp':backups.DumpPreUserCmd[hoteRsync],})
|
||||
os.chmod(rootpath + hoteRsync + ".pl", 0644)
|
||||
os.chown(rootpath + hoteRsync + ".pl", root, wwwdata)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue