|
|
Subject: Help - how to get a snapshot (all file names, size, ownership, ?etc.) of a Linux system?
From: thad05@tux.glaci.delete-this.com
Date: 12/17/2007 5:36:02 PM
lx282828@gmail.com wrote:
>
> What I intend to do is to keep a snapshot of my RH Linux + our
> production items before I upgrade it. This way, when I donwgrad it to
> the original version, I can easily compare and see if the original
> environment and the upgraded-then-downgraded environment are the same
> (all files and their attributes are the same). So, the snapshot I'm
> looking for should contains all files and their attributes (size, date-
> time, ownership, access control, etc.). With this said, do you think
> what you suggested ("ls -laR / > system-snapshot.txt", and "find / -
> depth -ls > system-shapshot.txt")is sufficient?
>
> Regards,
> BJ
Yes, either would work, though I suggest using the 'find' method.
You can then use the 'diff' command to compare various versions of
snapshot files and see exactly which files have changed and where
they are located. For example:
diff snapshot-old.txt snapshot-current.txt
That will show you exactly which lines are different in the
two files.
Thad
--
Yeah, I drank the Open Source cool-aid... Unlike the other brand, it had
all the ingredients on the label.
Subject: Help - how to get a snapshot (all file names, size, ownership, ?etc.) of a Linux system?
From: thad05@tux.glaci.delete-this.com
Date: 12/17/2007 5:36:02 PM
lx282828@gmail.com wrote:
>
> What I intend to do is to keep a snapshot of my RH Linux + our
> production items before I upgrade it. This way, when I donwgrad it to
> the original version, I can easily compare and see if the original
> environment and the upgraded-then-downgraded environment are the same
> (all files and their attributes are the same). So, the snapshot I'm
> looking for should contains all files and their attributes (size, date-
> time, ownership, access control, etc.). With this said, do you think
> what you suggested ("ls -laR / > system-snapshot.txt", and "find / -
> depth -ls > system-shapshot.txt")is sufficient?
>
> Regards,
> BJ
Yes, either would work, though I suggest using the 'find' method.
You can then use the 'diff' command to compare various versions of
snapshot files and see exactly which files have changed and where
they are located. For example:
diff snapshot-old.txt snapshot-current.txt
That will show you exactly which lines are different in the
two files.
Thad
--
Yeah, I drank the Open Source cool-aid... Unlike the other brand, it had
all the ingredients on the label.
|