martink0646
01-27-2007, 05:17 AM
Hi All,
Decided it was about time to backup my var/hack directory so used these forums to search for a method. I found two & decided to try them. In the process I realised that I didn't have tar so searched, found it & installed it...fine. Then I used this method;
"tar -cvf varhack.tar . <enter> to create a backup file,
and then FTP it to my pc
Then...
put it back in the /var/hack directory and:
tar -xvf varhack.tar"
I then went to ftp it & I couldn't find the resulting file. So I rebooted & after some problem ftping in I found it where it was supposed to be.
I then decided to use the other method as well to have two backups;
"cd /var
tar -cvh hack | gzip > hack.tar.gz
then FTP it to your PC for safekeeping!!
Happened to me too not long ago, fortunately I had a backup...
BTW to restore it should be
gzip -d hack.tar.gz
cpio -H tar -i < hack.tar
(again from the VAR directory)"
Midway through this second method my telnet session hung & my var/hack directory had disappeared. I can't believe it is a coincidence this should happen while I am backing up. It must have something to do with the reboot?
I assume that the backup I made has now disappeared with the var/hack directory?
Finally a bit of advice. Where should I start since its been two years since my var/hack disappeared before. I was planning to create a new var/hack using the mkdir command & then work through Steve Jenkins tutorial. Then install TiVoweb, then endpad.tcl, autospace & screensave before installing tystudio & all the other hacks & modules I have collected over the years.
Is this a 'good schedule of works' or can anyone else suggest a better order & why?
Thanks all
Martin
Decided it was about time to backup my var/hack directory so used these forums to search for a method. I found two & decided to try them. In the process I realised that I didn't have tar so searched, found it & installed it...fine. Then I used this method;
"tar -cvf varhack.tar . <enter> to create a backup file,
and then FTP it to my pc
Then...
put it back in the /var/hack directory and:
tar -xvf varhack.tar"
I then went to ftp it & I couldn't find the resulting file. So I rebooted & after some problem ftping in I found it where it was supposed to be.
I then decided to use the other method as well to have two backups;
"cd /var
tar -cvh hack | gzip > hack.tar.gz
then FTP it to your PC for safekeeping!!
Happened to me too not long ago, fortunately I had a backup...
BTW to restore it should be
gzip -d hack.tar.gz
cpio -H tar -i < hack.tar
(again from the VAR directory)"
Midway through this second method my telnet session hung & my var/hack directory had disappeared. I can't believe it is a coincidence this should happen while I am backing up. It must have something to do with the reboot?
I assume that the backup I made has now disappeared with the var/hack directory?
Finally a bit of advice. Where should I start since its been two years since my var/hack disappeared before. I was planning to create a new var/hack using the mkdir command & then work through Steve Jenkins tutorial. Then install TiVoweb, then endpad.tcl, autospace & screensave before installing tystudio & all the other hacks & modules I have collected over the years.
Is this a 'good schedule of works' or can anyone else suggest a better order & why?
Thanks all
Martin