Excluded Directories in scheduled backup?

9 posts / 0 new
Last post
#1 Mon, 05/12/2008 - 12:28
jmunjr

Excluded Directories in scheduled backup?

When doing a manual backup for a specific domain there is the option of "Excluded Directories"..

I have a scheduled backup for all virtual servers. Is there a way to have Excluded Directories for each/specific domains using this method?

I want to automatically backup and exclude some directories. HOw can I do this.

I am using the GPL version/

Thanks

Tue, 05/13/2008 - 08:38
ronald
ronald's picture

what seems to be working for me is - choose the server/domain in the dropdown menu on the top of virtualmin.
then go - Backup and Restore - click Excluded Directories - fill in the name of the directory to exclude in the right pane.

since I was a bit uncertain how and what to write, I did it like so to exclude the srcds directory:

home/mydomain.tld/srcds
srcds

Wed, 05/14/2008 - 05:02 (Reply to #2)
ronald
ronald's picture

for another domain i needed to exclude some video content in a joomla installation as they were to big to back up daily.
Because I didn't know how to write it exactly I just put the following in. Obviously I don't need all the lines, but haven't had the time yet to find out which line does the trick.

home/domainname/public_html/images/stories/videos/
domainname/public_html/images/stories/videos/
public_html/images/stories/videos/
images/stories/videos/
videos

the videos content is successfully excluded during daily (cron) backups.

Fri, 05/16/2008 - 08:20 (Reply to #3)
ronald
ronald's picture

anything in the error logs?
Have you set an email where to receive errors.
per haps filing a support ticket is best in this case

http://www.virtualmin.com/bug-tracker/

Tue, 05/13/2008 - 12:24
jmunjr

Thanks for the input.

Hmmm well I can't get the exclude to work at all even manually?

If my domain is blahblah.com:
path is /home/blahblah/public_html

I tried excluding:
home/blahblah/public_html/srcds
public_html/srcds
srcds/

Nothing worked

Also keep in mind there is no exclusion section for scheduled backups - this is what I want. directory exclusions aren't much help if they don't work in an automated fashion..

Wed, 05/14/2008 - 09:17
jmunjr

Well I did just exactly that yesterday and again today and it did not work... I wonder what is up?

Fri, 05/16/2008 - 10:12
jmunjr

where is the error log lol?

Fri, 05/16/2008 - 13:30 (Reply to #7)
Joe
Joe's picture

If you have your root alias set to something sane (like your personal email address), you will receive an email containing the results of all cronjobs, including backups.

--

Check out the forum guidelines!

Sat, 06/16/2018 - 05:53
pragma

I tried different methods and this worked perfectly. Please hit "Like" if it works for you as well.

Here is a solution:

Case I: Single Directory Exclude a directory from backups:

/home/example/public_html/docs/


Then syntax in "Files to exclude from each domain" should be:

public_html/docs


Case II: Multiple Directories Exclude multiple directories from backups:

/home/example/public_html/docs/
/home/example/public_html/var/
/home/example/domains/testbackups.example.com/public_html/media/cache/


Then syntax in "Files to exclude from each domain" should be:

public_html/docs
public_html/var
public_html/media/cache


Case III: Exclude file extensions

Exclude .exe .tar .tar.gz :


Then syntax in "Files to exclude from each domain" should be:

*.exe
*.tar
*.tar.gz


Case IV: All above cases at once

public_html/docs
public_html/var
public_html/media/cache
*.exe
*.tar
*.tar.gz


Note: These exclude files/directories are applicable globally for all websites/subdomains included in the backups. If you want to exclude the files/directories for website specific then you need to create schedule different backups for each domain.

Topic locked