The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Configuring backup, change filename?

Discussion in 'Data Protection' started by sharmaine001, Jan 2, 2009.

  1. sharmaine001

    sharmaine001 Well-Known Member

    Joined:
    Jun 23, 2006
    Messages:
    143
    Likes Received:
    0
    Trophy Points:
    16
    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 ?
     
  2. sirotex

    sirotex Well-Known Member

    Joined:
    Jul 10, 2008
    Messages:
    121
    Likes Received:
    0
    Trophy Points:
    16
    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..
     
  3. sharmaine001

    sharmaine001 Well-Known Member

    Joined:
    Jun 23, 2006
    Messages:
    143
    Likes Received:
    0
    Trophy Points:
    16
    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
     
Loading...

Share This Page