Backup destination retain just one backup

m.eid

Well-Known Member
Jun 4, 2014
54
6
83
Jordan
cPanel Access Level
Root Administrator
Twitter
Hi,
I want to ensure if that possible to retain more than one backup externally where we configured to retain one backup locally, since each time it makes backup it removes the locally and externally (Google Drive) too.
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,755
316
363
Chesapeake, VA
cPanel Access Level
DataCenter Provider
You can set the retention locally to what you want for remote and then use a find command with the mtime option as a cron to delete them locally. This only works for compressed backups though not incremental otherwise you will damage your backups locally.
 

m.eid

Well-Known Member
Jun 4, 2014
54
6
83
Jordan
cPanel Access Level
Root Administrator
Twitter
You can set the retention locally to what you want for remote and then use a find command with the mtime option as a cron to delete them locally. This only works for compressed backups though not incremental otherwise you will damage your backups locally.
Actually I found to retain two backups locally (where just need one) and move that backup remotely to other folder once weekly, I found it easier an safer than use cron job so no risk at local server.