ispCP - Board - Support
backup problems? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: Tickets / Roadmap / Timeline (/forum-50.html)
+--- Thread: backup problems? (/thread-9517.html)

Pages: 1 2 3


RE: backup problems? - marchaos - 02-08-2010 11:35 PM

Option --exclude=...


RE: backup problems? - adivor - 02-09-2010 12:12 AM

in my interest, i muse not include this dir:
/htdocs/wp-content/plugins/hyper-cache/cache

Option --exclude=... ?????? can you complete command?

thanks


RE: backup problems? - marchaos - 02-09-2010 12:23 AM

man tar

$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";

http://www.isp-control.net/ispcp_svn/trunk/engine/backup/ispcp-backup-all


RE: backup problems? - adivor - 02-09-2010 09:12 AM

thanks..... i'm waiting bugfix :-)


RE: backup problems? - kilburn - 02-10-2010 07:20 AM

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...


RE: backup problems? - bpratt - 02-11-2010 08:09 PM

(02-10-2010 07:20 AM)kilburn Wrote:  As a proposal, what would you think about replacing the line


This would allow users to create a file "/backups/excludes" with a list of files/directories (wildcards accepted) to be excluded from the backups...

Yes, I think that would be a great option.

There are directories that people won't want backed up regulary, i.e. their favourite CMS distribution files that are already tar'd or bzip'ed.


RE: backup problems? - marchaos - 02-11-2010 08:40 PM

Killburn, can you add this to ispCP distibution? For first step. Later I think you can provide support to add some exclude options in GUI.


RE: backup problems? - RatS - 02-12-2010 06:54 PM

If we add a function like this, than it will be proper working and manageable from the GUI by default. No fuzzy solutions any more, there are enough already inside ispCP.


RE: backup problems? - kilburn - 02-12-2010 07:04 PM

The panel (gui) can easily modify user's files through the virtual file system (class.vfs.php) as shown in the error pages editors or the "choose dir" functionality (alias/subdomain addition). Thus, implementing a gui to handle this file should be easy enough so that any "new" ispcp developer could do it.

Who wants to try? You can ask me if you have any questions in the process...


backup problems + - rauschr - 03-20-2010 07:19 PM

I get this error message every day.
I used debian etch width iscp 1.0.4.
It appeared when I upgraded to 1.0.3.1.
What the problem?
Quote:/etc/cron.daily/logrotate:
Use of uninitialized value in concatenation (.) or string at /var/www/ispcp/engine/traffic/ispcp-vrl-traff line 279.
Use of uninitialized value in concatenation (.) or string at /var/www/ispcp/engine/traffic/ispcp-vrl-traff line 279.
Use of uninitialized value in concatenation (.) or string at /var/www/ispcp/engine/traffic/ispcp-vrl-traff line 279.
Use of uninitialized value in concatenation (.) or string at /var/www/ispcp/engine/traffic/ispcp-vrl-traff line 279.
Use of uninitialized value in concatenation (.) or string at /var/www/ispcp/engine/traffic/ispcp-vrl-traff line 279.
Use of uninitialized value in concatenation (.) or string at /var/www/ispcp/engine/traffic/ispcp-vrl-traff line 279.
Use of uninitialized value in hash element at /var/www/ispcp/engine/traffic/ispcp-vrl-traff line 339.
Use of uninitialized value in hash element at /var/www/ispcp/engine/traffic/ispcp-vrl-traff line 477.
Use of uninitialized value in hash element at /var/www/ispcp/engine/traffic/ispcp-vrl-traff line 672.