Current time: 11-26-2024, 09:14 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
backup problems?
Author Message
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #15
RE: backup problems?
As a proposal, what would you think about replacing the line
Code:
$backup_cmd = "$cmd_tar --create --directory=$dmn_dir --$zip --file=$www_dir/$backup_filename --exclude=logs --exclude=phptmp --exclude=backups . 2> $www_dir/$backup_filename.log";

with:

Code:
if ( -f "$dmn_dir/excludes" ) {
    $backup_cmd = "$cmd_tar --create --directory=$dmn_dir --$zip --file=$www_dir/$backup_filename --exclude=logs --exclude=phptmp --exclude=backups --exclude-from=backups/excludes . 2> $www_dir/$backup_filename.log";
} else {
    $backup_cmd = "$cmd_tar --create --directory=$dmn_dir --$zip --file=$www_dir/$backup_filename --exclude=logs --exclude=phptmp --exclude=backups . 2> $www_dir/$backup_filename.log";
}

This would allow users to create a file "/backups/excludes" with a list of files/directories (wildcards accepted) to be excluded from the backups...
02-10-2010 07:20 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
backup problems? - Boter - 02-05-2010, 01:21 PM
RE: backup problems? - marchaos - 02-05-2010, 05:18 PM
RE: backup problems? - Boter - 02-06-2010, 09:10 AM
RE: backup problems? - kilburn - 02-06-2010, 11:59 AM
RE: backup problems? - Boter - 02-07-2010, 11:14 AM
RE: backup problems? - kilburn - 02-07-2010, 12:53 PM
RE: backup problems? - c0urier - 02-07-2010, 07:08 PM
RE: backup problems? - adivor - 02-08-2010, 08:51 PM
RE: backup problems? - marchaos - 02-08-2010, 09:08 PM
RE: backup problems? - adivor - 02-08-2010, 11:10 PM
RE: backup problems? - marchaos - 02-08-2010, 11:35 PM
RE: backup problems? - adivor - 02-09-2010, 12:12 AM
RE: backup problems? - marchaos - 02-09-2010, 12:23 AM
RE: backup problems? - adivor - 02-09-2010, 09:12 AM
RE: backup problems? - kilburn - 02-10-2010 07:20 AM
RE: backup problems? - bpratt - 02-11-2010, 08:09 PM
RE: backup problems? - marchaos - 02-11-2010, 08:40 PM
RE: backup problems? - RatS - 02-12-2010, 06:54 PM
RE: backup problems? - kilburn - 02-12-2010, 07:04 PM
backup problems + - rauschr - 03-20-2010, 07:19 PM
RE: backup problems? - kilburn - 03-21-2010, 07:56 PM
RE: backup problems? - rauschr - 03-22-2010, 06:14 AM
RE: backup problems? - Zothos - 03-23-2010, 08:44 AM
RE: backup problems? - kilburn - 03-23-2010, 09:35 AM
RE: backup problems? - rauschr - 03-24-2010, 12:43 AM
RE: backup problems? - kilburn - 03-24-2010, 01:02 AM
RE: backup problems? - rauschr - 03-24-2010, 06:42 AM
RE: backup problems? - peteraugusts - 04-02-2010, 04:21 PM
RE: backup problems? - romantik - 08-22-2010, 08:21 PM

Forum Jump:


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