Web Hosting Talk







View Full Version : [cPanel] Create a backup in different path every day


Scolpy
04-09-2010, 03:25 PM
Hello!

I have cPanel 11.25 and I'm using the root user to manage my accounts(not a reseller user) and I want to know if there any option to set the daily backup option to be in different path?

Like this example:


Sunday -> /backups/01-sunday/
Monday -> /backups/02-monday/
Tuesday -> /backups/03-tuesday/
Wednesday -> /backups/04-wednesday/
Thursday -> /backups/05-thursday/
Friday -> /backups/06-friday/
Saturday -> /backups/07-saturday/


Because I know that there is option to set to path. but this path is for all days and you can't change it for every day.

I know that there option like this in DirectAdmin(I used this option in my second server).

so my question is if there any option like I gave in example?

Thanks!

Yonatan :)

-Edward-
04-09-2010, 03:59 PM
I believe you will need to make some changes to the main backup script that cPanel uses to achieve this.

040Hosting
04-09-2010, 04:03 PM
you wont be able to do this with the default cpanel backup, but the easiest way would be running a post-backup script which moves the newly created backup to the directories of your liking. Note that this would make it impossible to do automatic restores from within WHM as it would check the Daily, weekly and monthly directories only.

Scolpy
04-09-2010, 04:49 PM
you wont be able to do this with the default cpanel backup, but the easiest way would be running a post-backup script which moves the newly created backup to the directories of your liking. Note that this would make it impossible to do automatic restores from within WHM as it would check the Daily, weekly and monthly directories only.
There is no simpler solution?

040Hosting
04-09-2010, 05:03 PM
I think that IS a simple solution ;) just write a short script and you are ready.

ideamine
04-09-2010, 05:11 PM
You wont be able to do this with the default cpanel backup.It is better to use custom backup script to accomplish this task.

qualityhostings
04-10-2010, 12:09 AM
Hi

You need to write a custom backup script that will generate backup and sort according to the date