Current time: 11-23-2024, 05:00 AM Hello There, Guest! (LoginRegister)


Post Reply 
/bin/tar: .: file changed as we read it
Author Message
gandyman Offline
Newbie
*

Posts: 6
Joined: Jan 2008
Reputation: 0
Post: #3
RE: /bin/tar: .: file changed as we read it
Lo Joximu,

Quote:please use the name ispcp if you refer to this project. There were complaints from the old vhcs name owner...
I wil, no worry.
Shame tough, while he is proud that ppl take the effort to continui his project.....
O-wel to complicated, he wil have his reasons. sigh, ??? ppl ???

Quote:to the points:
- the tar command throws an error if the files are changing while they are to be saved, AFAIK this is still the case but this has to be solved (at least the following backups have to be done...)

you lost me a bit. ?? Big Grin
hmz you say it is solved ??

And the following backups cant start becouse there is a backup_lock_file file, with I first must remove.

enyway:
Becouse I see a lot things with are inproved I stil have this question:
1. Can I use this ispcp-backup-all script in my old vhcs2 installation? , instead of the old one from VHCS2 ???

Forinstead I see this in my script:
Code:
my $backup_cmd = "$cmd_tar --create --directory $dmn_dir --gzip --file $dmn_dir/$backup_filename --exclude=logs --exclude=backups --exclude=$backup_filename .";
            
        if ($dmn_status eq 'ok') {

            if( -z $dmn_backup_dir)
            {
                $rs = del_file($dmn_backup_dir);
            
                return $rs if ($rs != 0);        
            }

            if(! -d $dmn_backup_dir)
            {
#                $rs = make_dir($dmn_backup_dir);
#                $rs = make_dir($dmn_backup_dir, $domain_uid, $httpd_gid, 0770);
                $rs = make_dir($dmn_backup_dir, $domain_uid, $domain_gid, 0770);
            
                return $rs if ($rs != 0);        

#                $rs = setfmode($dmn_backup_dir, "root", "root", 0644);

And I see this in your? script:
Code:
my $backup_cmd = "$cmd_tar --create --directory=$dmn_dir --bzip2 --file=$dmn_dir/$backup_filename --exclude=logs --exclude=phptmp --exclude=backups --exclude=$backup_filename . 2> $dmn_dir/$backup_filename.log";

        #
        # User Database Backup
        #

        if(! -d $dmn_backup_dir) {
            $rs = make_dir($dmn_backup_dir, $domain_uid, $domain_gid, 0770);

            return $rs if ($rs != 0);
        }

        #

BTW just pickt up things what look the same and or what look like belong togheter.

I know from what I read -left-and-wright- that the old vhcs2 script is somewhat buggy.
I change some things what ppl say, and must say it workt, until several months ago.

sigh
(This post was last modified: 01-12-2008 08:48 AM by gandyman.)
01-12-2008 08:43 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: /bin/tar: .: file changed as we read it - gandyman - 01-12-2008 08:43 AM

Forum Jump:


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