Open txsastre opened 8 years ago
The logs should go to the same location as the subdirectory under which the backups themselves are written. For example: backup_dir=/snapshots/BACKUPS where the directory and subdirectory should of course be able to be written to by the running owner of the utility, root. That should be the only location this is configured. Is there adequate space for additional data? Did you try this with the "preview" parameter to make sure the syntax of the configuration file was correct? Did you try this with a very basic VM to see if even a single VM can be correctly handled?
DEFAULT_BACKUP_DIR = '/root/NAUbackup/backup' STATUS_LOG = '/root/NAUbackup/backup/status.log'
2016-07-28-(09:05:15) - VmBackup config loaded from: S-INCA* 2016-07-28-(09:05:15) - VmBackup.py running with these settings: 2016-07-28-(09:05:15) - backup_dir = /root/NAUbackup/backup 2016-07-28-(09:05:15) - compress = False 2016-07-28-(09:05:15) - max_backups = 4 2016-07-28-(09:05:15) - vdi_export_format = raw 2016-07-28-(09:05:15) - pool_db_backup = 0 2016-07-28-(09:05:15) - exclude (cnt)= 0 2016-07-28-(09:05:15) - exclude: 2016-07-28-(09:05:15) - vdi-export (cnt)= 0 2016-07-28-(09:05:15) - vdi-export: 2016-07-28-(09:05:15) - vm-export (cnt)= 1
The backup has been done OK (thanks for the script !), but I cannot see the log file.
Have you checked read/write/access rights on that directory? Which is the user who starts the script? I first had to create the empty logfiles manually (e.g. # /root/NAUbackup/backup/ touch status.log)
hi. I remember that the log files where working fine.
I hard coded the path, its the same where the vm backups are done.
but at this days they are not working, no errors, no nothing, no log files.
What can I check ?
Thank you