ispCP Backup fails... - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Development Area (/forum-1.html) +--- Forum: General discussion (/forum-11.html) +--- Thread: ispCP Backup fails... (/thread-1651.html) Pages: 1 2 |
RE: ispCP Backup fails... - joximu - 10-29-2007 10:28 PM I was wrong the rm in cron is for /etc/ispcp/... - the one in the backup routine not. The first two messages are to ignore: everything seems right: the variables are used only once (they are set elsewhere). The rm command has to be improved - if there is nothing to delete then rm can be omitted... /J RE: ispCP Backup fails... - raphael - 11-01-2007 07:32 AM I don't have very much time right now, but: * the find ... | xargs rm one in the cronjob deletes old config files (generated by the engine when a config file is changed) * the one in the ispcp-backup-ispcp (lol, what a name) is used to remove ispCP's backups older than 14 days, so the admin can restore the config files 14 days older (+7 which are the ones kept under /etc/ispcp/*/backup/); giving enough time to detect an error and restore a backup. About the error, what about replacing: Code: sys_command("find $backup_dir/* -maxdepth 0 -type f -mtime +14 -print | xargs /bin/rm"); Code: `find $backup_dir/* -maxdepth 0 -type f -mtime +14 -print | xargs /bin/rm` RE: ispCP Backup fails... - BeNe - 11-01-2007 07:42 AM Same output with your change: Code: Name "main::db_user" used only once: possible typo at /var/www/ispcp/engine/backup/ispcp-backup-ispcp line 232. Code: Name "main::db_user" used only once: possible typo at /var/www/ispcp/engine/backup/ispcp-backup-ispcp line 232. Greez BeNe |