ispCP - Board - Support
Backup modification - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Backup modification (/thread-2708.html)



Backup modification - Kika - 03-12-2008 08:25 AM

Hi

There are some domain on my server which contains multimedia files what i don't want to backup. I modified the backup to exclude these files.

Code:
create this file:
# /etc/ispcp/backup/exclude_from_backup
*avi
*jpg
...
(you can insert file masks you don't vant to backup)

Code:
#/var/www/ispcp/engine/backup/ispcp-backup-all
insert this string to the line 293 and to the line 298 after "--exclude=logs":

"--exclude-from=/etc/ispcp/backup/exclude_from_backup "

Maybe somebody can insert this feature to the next nightly build.

Thanks


RE: Backup modification - Zothos - 03-12-2008 07:25 PM

please create a ticket. Will be included in 1.1

Maybe a howto would be nice also Tongue


RE: Backup modification - joximu - 03-12-2008 07:43 PM

This solution is good for private hosting. So I rather think we're looking for a solution where it's possible to define exclude-files per customer.
But it can be based on the above...


RE: Backup modification - Cube - 03-12-2008 07:49 PM

Quote:please create a ticket.
There is already one: http://www.isp-control.net/ispcp/ticket/1104


RE: Backup modification - FeG - 03-23-2008 12:04 AM

Hi,

would it be sufficient to have a file called exclude_list in /var/www/virtual/domain/backup/ in which the user can specify the wanted excludes over ftp?

We could place a "howto"-file there like
Code:
# Here you can specify filepatters that shall be excluded from the backup of your domain directory.
# All lines beginning with an # will be ignored.
#
# i.e. to exclude all MP3 and AVI files from being backed up, write
#
# *.mp3
# *.avi
#
# without the # in front

Of course this would not be included in the GUI, but maybe it's enough at first.

What do you think? I'd write this patch if you agree with it...

Greetings
FeG


RE: Backup modification - BioALIEN - 03-24-2008 11:57 AM

That's a nice idea FeG, not sure how practical it is, but yes definitely something for v1.1?


RE: Backup modification - FeG - 03-27-2008 12:19 AM

Hi,

I've just added a patch for the ispcp-backup-all script to ticket 1104, which allows users to define exclusions in the file /var/www/domain/backups/exclude_list. If this file exists for a domain, it'll be inserted with --exclude-from=... in the tar command.

I hope this is a bit what you wanted; of course, later one, there could be a default file in this directory or this file could be edited via GUI. But for 1.0.0 I think, this is enough and gives the users full control over the backup.

Tell me if that's alright or if there anything that should be changed...

Greetings
FeG

@Developers: If you read this and apply the patch to the ispCP-Source, please tell me.. I'll of course write a little "howto" for this exclude-file where users see what they can specify there (cause it's also possible to exclude complete directories etc.).


RE: Backup modification - MasterTH - 02-20-2009 02:11 AM

if you want to exclude a folder generaly (in my case i created a folder "Backup" in root of the domain-folder) you can add a "--exclude=Backup" then the complete folder will be excluded from daily backup.

Be careful, this will take effect for all customers.