- or download this
my $backupcommand = "tar -cvf - ".$directory."/".$seasonYear."*.html|7
+z a -mx9 -si ".$backupdirectory."/".$seasonYear.".tar.7z";
my $result = `$backupcommand 2>&1`;
- or download this
user@server:~$ perl dailyscript.pl > testout.txt
tar: Removing leading `/' from member names
/home/user/backupdirectory/2011.html
user@server:~$
- or download this
7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
...
Compressing [Content]
Everything is Ok
- or download this
my $backupcommand = "tar -cvf - ".$directory."/".$seasonYear."*.html 2
+>&1|7z a -mx9 -si ".$backupdirectory."/".$seasonYear.".tar.7z";
my $result = `$backupcommand 2>&1`;