Exclude a user folder on system backup

planetjoin

New member
Joined
Oct 15, 2004
Messages
2
Hello :

I´m using DirectAdmin 1.22.6.
I want to use the System backup (from Admin level) with remote FTP. Appearly all is fine and easy to setup... But I need to exclude one entire user folder when run backup.

The system allow me to choose what folders and files to backup but not allow me to exclude one of them.

For example if I mark to include the folder /home, the system will backup ALL the /home folder.
I need to backup all the /home folder but excluding for example ONLY ONE user folder : /home/oneuser

This is very easy on cpanel, but I don´t found any option here :(

Can I explain myself ?
(sorry for my english)

Regards and thanks in advance
Fabian
 
Hello,

At the moment, sysbk can include a folder, or not include a folder. If you wanted to skip /home/skipuser, but include the rest, then you'd have to remove /home, and add /home/user1, /home/user2 etc..to the list.

Something will have to be addressed for that as it's not the first request for it. Not to mention that /home will create 1 huge home.tar.gz which is (in a few cases) too big for the filesystem anyway.

John
 
:(

Hi..

Thanks for your answer..

Is true.. the /home with more of 250 sites will be make a HUGE tar.gz file.. maybe the solution is like the cpanel backup.
It make one tar.gz per each user/domain

I also think to do as your suggestion :

If you wanted to skip /home/skipuser, but include the rest, then you'd have to remove /home, and add /home/user1, /home/user2 etc..to the list.

But the problem with this is that each new user/domain that we create on the server, we must to remember to add it on the list of the backups :(

I hope that anybody found any solution for this problem. a good backup system is VERY IMPORTANT on our web hosting business :)


Regards
Fabian
 
We're working on a solution using code from the CPanel code included with the original sysbk distribution (not with DA).

I don't know yet when or if I'll have the time to make available a "community solution" to this particular problem, but here's the clue:

The CPanel code only includes subdirectories of home that are listed in the /etc/passwd file.

So if you want to do it, just use code similar to the CPanel code, but have it check against a newly defined file, and instead of only including subdirectories listed, have it exclude subdirectories listed.

I just don't have the time right now.

Jeff
 
I'm try add "/home/user/domains/domain.com/public_html//video" into file /usr/local/sysbk/.stignore but backup files has still huge size.

How to exclude some folders in fresh versions of sysbk script ?

..
Trying put .stignore file into this dir.
 
Last edited:
You've opened up a thread three years old.

Just exactly what backup are you running?

Do you mean that // (double-slash) in your post? Or is that an error? If an error I'd fix it and see if it works.

Otherwise someone is going to have to search through the sysbk source code to see how it decides what to ignore.

Care to be that someone ;) ?

Jeff
 
No, dobule slash is my obfuscating error. real path is right.
I have sysbk installed into /usr/local/sysbk and setup sheduled system-level backup in DA as "admin".
I found strange code which simple create file if not exist and nothing about exclude from tar or copying.
 
Last edited:
Back
Top