NAUbackup / VmBackup

XenServer simple backup script
228 stars 61 forks source link

log not saving ? #22

Open txsastre opened 8 years ago

txsastre commented 8 years ago

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

NAUbackup commented 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?

txsastre commented 8 years ago

This are the values (These are mounted NFS devices)

DEFAULT_BACKUP_DIR = '/root/NAUbackup/backup' STATUS_LOG = '/root/NAUbackup/backup/status.log'

the preview

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

2016-07-28-(09:05:15) - vm-export: S-INCA12

The backup has been done OK (thanks for the script !), but I cannot see the log file.

blu-IT commented 8 years ago

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)