Current time: 11-27-2024, 01:59 AM Hello There, Guest! (LoginRegister)


Post Reply 
ispCP Backup fails...
Author Message
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #12
RE: ispCP Backup fails...
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");
with
Code:
`find $backup_dir/* -maxdepth 0 -type f -mtime +14 -print | xargs /bin/rm`
?
11-01-2007 07:32 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
ispCP Backup fails... - BeNe - 10-29-2007, 07:39 PM
RE: ispCP Backup fails... - joximu - 10-29-2007, 08:01 PM
RE: ispCP Backup fails... - BeNe - 10-29-2007, 08:14 PM
RE: ispCP Backup fails... - joximu - 10-29-2007, 08:32 PM
RE: ispCP Backup fails... - joximu - 10-29-2007, 08:35 PM
RE: ispCP Backup fails... - joximu - 10-29-2007, 08:47 PM
RE: ispCP Backup fails... - joximu - 10-29-2007, 08:51 PM
RE: ispCP Backup fails... - BeNe - 10-29-2007, 08:57 PM
RE: ispCP Backup fails... - joximu - 10-29-2007, 10:02 PM
RE: ispCP Backup fails... - BeNe - 10-29-2007, 10:20 PM
RE: ispCP Backup fails... - joximu - 10-29-2007, 10:28 PM
RE: ispCP Backup fails... - raphael - 11-01-2007 07:32 AM
RE: ispCP Backup fails... - BeNe - 11-01-2007, 07:42 AM

Forum Jump:


User(s) browsing this thread: 4 Guest(s)