Backup only last 30 days

tautom

Verified User
Joined
Sep 26, 2006
Messages
15
How can I set the system wide backup to create each day a backup and story it by ftp on another server (which I have done now), but delete the backups that are older than 30 days (which I do not know how to do that)?
 
find /backup/folder -mtime +30 -delete

Is there a command line in which I integrate both
  • connect to ftp server with usernamen and passwort and
  • execute the command "find /backup/folder -mtime +30 -delete" ?
Then I can do that in my cron. Thanks.
 
Back
Top