Configuring backup, change filename?

sharmaine001

Well-Known Member
Jun 23, 2006
143
0
166
I have enabled backups which will send to remote server. The filename being generated by the backup is username.tar.gz

when new backup is due, it will have an error that file already exists because i dont delete backup files from the remote server. Is there any way to solve it? Probably change the filename from username.tar.gz to

backup-month.day.year_hour-minute-second_username.tar.gz ?
 

sirotex

Well-Known Member
Jul 10, 2008
121
0
66
Run a script from cronjob every day or so, dependent on when you run backups which randomly mv's the filenames to another name. Or just make it remove them or change the folder they're in. I.e; mv monthly to monthly.date etc..
 

sharmaine001

Well-Known Member
Jun 23, 2006
143
0
166
would you have a sample script? sorry but im just a newbie to all of this and i do not know how to write a script and make it work/run by cron