1 |
> # tar -zcvf /backup/mylaptop.tar /[all directories] except /backup (as I |
2 |
> don't want to go in circles). |
3 |
|
4 |
You're going to want to exclude portions of /var, /dev, /proc & /sys, /tmp, |
5 |
... You're also going to want to dig deeper into command line options to |
6 |
preserve ownership, links rather than hard files, etc. |
7 |
|
8 |
> # tar -zxvf mylaptop.tar |
9 |
|
10 |
Ah, -z isn't needed because mylaptop.tar is not compressed. The other |
11 |
larger problem is that it overwrites all files, regardless of whether they |
12 |
have been updated or not. |
13 |
|
14 |
I guess really what I'm saying is no, it is not a good idea. There's plenty |
15 |
of other backup solutions out there that would work better than this scheme. |
16 |
If you have a server and space for the file, rsync would even be a better |
17 |
solution. |
18 |
|
19 |
-- |
20 |
gentoo-user@g.o mailing list |