Page Index Toggle Pages: 1
Topic Tools
Time bug in Backup.pl (Read 787 times)
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,080
Location: Earth

YaBB 2.6.0
Re: Time bug in Backup.pl
Reply #1 - Nov 6th, 2012 at 9:31pm
Post Tools
This Topic was moved here from YaBB 2 - Bugs [Need Verification] [move by] Dandello.
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,080
Location: Earth

YaBB 2.6.0
Time bug in Backup.pl
Aug 24th, 2012 at 2:59pm
Post Tools
When using zip for the backup protocol, The 'last back-up' time simply gives the month instead of the date.

Not the most elegant solution but this works:

in ./Admin/Backup.pl
find:
Code (Perl)
Select All
$lastbackupfiletime =~ s/ .+// if $backupmethod eq '/usr/bin/zip'; 



replace with:
Code (Perl)
Select All
			if ($backupmethod eq '/usr/bin/zip'){
                      @lbt = split / /, $lastbackupfiletime;
                        $lastbackupfiletime = join q{ }, $lbt[0],$lbt[1],$lbt[2];
 }
 

« Last Edit: Aug 24th, 2012 at 2:59pm by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top