Current time: 12-27-2024, 01:27 AM Hello There, Guest! (LoginRegister)


Post Reply 
Backup modification
Author Message
Kika Offline
Member
***

Posts: 293
Joined: Feb 2007
Reputation: 8
Post: #1
Backup modification
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
(This post was last modified: 03-12-2008 08:31 AM by Kika.)
03-12-2008 08:25 AM
Find all posts by this user Quote this message in a reply
Zothos Offline
Release Manager
*****
Dev Team

Posts: 1,262
Joined: Feb 2007
Reputation: 10
Post: #2
RE: Backup modification
please create a ticket. Will be included in 1.1

Maybe a howto would be nice also Tongue
03-12-2008 07:25 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #3
RE: Backup modification
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...
03-12-2008 07:43 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Cube Offline
Member
***

Posts: 740
Joined: Apr 2007
Reputation: 9
Post: #4
RE: Backup modification
Quote:please create a ticket.
There is already one: http://www.isp-control.net/ispcp/ticket/1104
03-12-2008 07:49 PM
Find all posts by this user Quote this message in a reply
FeG Offline
Banned

Posts: 222
Joined: Aug 2007
Post: #5
RE: Backup modification
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
03-23-2008 12:04 AM
Find all posts by this user Quote this message in a reply
BioALIEN Offline
Public Relations Officer
*****
Dev Team

Posts: 620
Joined: Feb 2007
Reputation: 5
Post: #6
RE: Backup modification
That's a nice idea FeG, not sure how practical it is, but yes definitely something for v1.1?
03-24-2008 11:57 AM
Find all posts by this user Quote this message in a reply
FeG Offline
Banned

Posts: 222
Joined: Aug 2007
Post: #7
RE: Backup modification
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.).
(This post was last modified: 03-27-2008 12:21 AM by FeG.)
03-27-2008 12:19 AM
Find all posts by this user Quote this message in a reply
MasterTH Offline
Member
***

Posts: 570
Joined: Feb 2009
Reputation: 4
Post: #8
RE: Backup modification
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.
02-20-2009 02:11 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)