System and user backup to external HDD

lonerunner

Verified User
Joined
Nov 16, 2010
Messages
56
I know this has been posted many times on many forums, but i dont get what i search.

In DA as admin i have System backup, and Admin backup/transfer
And i want to set both backups to second HDD.

I mounted second HDD as /backup

For Admin backup/transfer i made symlink from /home/admin/user_backups to lead to /backup/user_backups
and this doesnt work.
What work is that i set cronjob and in location i put /backups/user_backups

Second when i try to do system backup. location settings dont work.

When i try to set location to /backup/system/ doesnt backup at all.

When i try just to do backup with default path $MOUNT_POINT/backup it works but backup folder is in /home/backup

My question is can i have bakcups like this

Admin backup/transfer to do daily backups to second HDD on mount point /backup/user_backups/ with folder of backup date and i want to keep 7 day backups

And System backup to second HDD on mount point /backup/system and to have weekly backups of system

I have tried everything and all works except mount point location.
 
Yes owner and group of folder is root and chmod 777

If you mean Task queue log (/var/log/directadmin/errortaskq.log) its empty
 
You shouldnt need chmod 777 only 700.

Also the backup system should be chowning the files so they shouldnt need to be writeable by anyone except root.

What does this command show:

Code:
ls -laR /backup
 
You shouldnt need chmod 777 only 700.

Also the backup system should be chowning the files so they shouldnt need to be writeable by anyone except root.

What does this command show:

Code:
ls -laR /backup

This command shows everything that is in backup folder and subfolder.

I have made syslink to /backup/system from /home/backup and this works now, i dont know if this is best method but its working method.
Here is code in terminal

Code:
ln -s /backup/system /home/backup

now when i run System backup from DA with default path $MOUNT_POINT/backup i get backups in /backup/system folder on other HDD
backups are generated in new folder by date so next backup will have new folder with date when its created.

What i didnt find out if its possible to make backups ordered by date in folders from Admin Backup/transfer option?
For example when i set cronjob to do backup every day at 6 am to have backups organized like this:
/backup/user_backups/01-03-11
/backup/user_backups/01-04-11
/backup/user_backups/01-05-11
For now i have only one folder and backup files are overwritten every time new backup is generated.
 
I found workaround for that i just dont know if this is smart idea

I made 7 folders on another HDD
/backup/daily/mon
/backup/daily/tue
/backup/daily/wed
etc...

And than in Admin Backup/transfer make 7 cron jobs to run daily, every day one cron backup and give them daily folders.

This way when cron is run at monday it will auto overwrite backups made in previous monday and i will have backups for 1 week keept on server
 
Back
Top