I was trying to put it to a path outside of the path where the other snapshots are. So I created my structure_backup directory inside the snapshot directory and did a relative path ./structure_backup[/quote]
No pbm
And it works now ?
Indeed you have to put the directory inside the rsnapshot path to allow it to perform the rotation
What Pascal/CaratHosting did is a separation between the FS = file structure and the data
Perform a backup per IP is very good as it allows to restore/migrate all accounts of an IP
I actually decided to not do this. As I do a few backups a day and the structure backup is a bit more intensive than rsync syncing a few fiiles. I have setup a second cron to run the backup script separately and not as often. I know Pascal has a good point of having the data and structure together, but for me 90% of my clients are managed by mean so its not as big of a deal. Also, with the raid mirror this backup is more of an opps i didn’t mean to delete that than a disaster recovery. But anyway I still have disaster protection and if I have to create one email account manually than so be it.
As I do a few backups a day and the structure backup is a bit more intensive than rsync syncing a few fiiles. I have setup a second cron to run the backup script separately and not as often.
Do you mean you have one cron job for doing the backup of the structure and one other for “rsyncing” the data ?
If yes Im not really sure you win time and ressources. Also you might have a bad sync between the account and the data.
But you right the most important is your solution feat yours needs
For your information we’ve done some tests and today we are sure that the speedest solution to backup/restore a box/an account/some accounts is to perform a structure only backup and a rsync (done directly by rsync or by rsnapshot if you need rotations)
Our first idea was to perform a structure backup once a day and perfrom a rsync few times a day (one structure backup for the day X and then 4 syncs of the data per day). But with this solution we finished to have some restore problem because the data of the accounts was not the exact image of the account itself (for example if the client create after the structure backup few mails account or others things like sub domains, secondary domains, etc).
One more time we give these informations just to inform all others and not to convince you
The most important being your solution works well, feat (or feet ?) your needs and allow you to restore what you need when you need :-p
[QUOTE=netipro;15192]Do you mean you have one cron job for doing the backup of the structure and one other for “rsyncing” the data ?[/quote]Yes, I have several rsnapshot crons setup for hourly, daily, weekly, and monthly. So doing a structure backup 6 times a day (or whatever I have hourly running now) just seems like an overkill. I dont know of anyway to make the backup_script run only with daily rsnapshot so I just do it with its own cron.
Our first idea was to perform a structure backup once a day and perfrom a rsync few times a day (one structure backup for the day X and then 4 syncs of the data per day). But with this solution we finished to have some restore problem because the data of the accounts was not the exact image of the account itself (for example if the client create after the structure backup few mails account or others things like sub domains, secondary domains, etc).
Yeah, this is exactly what I am doing. In my case since my main business is a web designer and not a web host I manage everything for most of my clients.
One more time we give these informations just to inform all others and not to convince you
The most important being your solution works well, feat (or feet ?) your needs and allow you to restore what you need when you need :-p
Yeah, its great to have a discussion and here things from different points of view and make sure you dont forget something. For me the risk of my raid array dieing and having to do a full restore based on my rsync backup is pretty slim compared to the extra resources to do a structure only backup 6 times a day.
And i think you mean what best fits your needs