Remote backup done correctly but directly deleted

  • djyod
  • 09/14/10
  • Offline
Posted: Tue, 2010-11-02 02:31

Hi,

I have a scheduled backup on several servers and they should be done at 00:00 every night. As I can read on the log, the server did the backup and sent it to the backup server using SSH. However at the end of the log, I can read that the directory "Tue" has been deleted because it was 7 days old (The backup is set to delete backup after 7 days).

In conclusion, virtualmin delete the recently done backup... What did I wrong?

Thank you for your help.

Phil.


What exactly is the name of

  • Locutus
  • 10/10/10
  • Offline
  • Tue, 2010-11-02 07:26

What exactly is the name of the backup folder? Just "Tue"?

The documentation for the "delete old backup function" says that a certain directory naming scheme is required so that it can determine which backups are too old:

>Delete old backups [...] However, this is only usable when the backup destination directory is named like /backup/%d-%m-%Y, or the filename is named like /backup/virtualmin-%d-%m-%Y.tar.gz. This is required for Virtualmin to be able to work out which files and directories were created by the backup process.


I have one directory per

  • djyod
  • 09/14/10
  • Offline
  • Tue, 2010-11-02 10:25

I have one directory per day, the string is : /home/remote_backup/Backups/tools_server/%a

thank you


Well, that might well be the

  • Locutus
  • 10/10/10
  • Offline
  • Tue, 2010-11-02 12:09

Well, that might well be the problem, since with just the weekday, VMin cannot determine how old the directory is. :) At least that's how I understand the documentation entry. Maybe try creating a backup with the naming scheme given in my quote.


I see, so I'll try what you

  • djyod
  • 09/14/10
  • Offline
  • Wed, 2010-11-03 05:09

I see, so I'll try what you advised.

However, it works on some servers, strange :-)

Thank you for your help !


You're welcome! Let us know

  • Locutus
  • 10/10/10
  • Offline
  • Wed, 2010-11-03 06:09

You're welcome! Let us know how it turns out, I'm quite certain this is interesting for other users too.