[lug] rsync to explore file system differences?

Brennen Bearnes bbearnes at gmail.com
Wed Feb 4 20:50:01 MST 2015


Performance and storage space might both be huge issues depending on size
of the filesystem, but I'd be tempted to build a git repo of the reference
system containing everything, then clone it into the root of the derived fs
and see what's changed...

On Wed, Feb 4, 2015 at 7:11 PM, <stimits at comcast.net> wrote:

> ...
> > I would write a shell script around "diff --brief --text --recursive
> --new-file "$OLD_FS" "$NEW_FS""
> >
> > Save that output into a variable then pipe into a "while read" loop, and
> you can do different things with each line depending on what the status is.
>  ...
>
> This would be perfect if diff understood symbolic links and device special
> files (in terms of hard files the diff output is nice...although I still
> need time stamps equal as well). I would still need a front end that
> understands hard/soft link, device special files, permissions, and time
> stamps. I'm not a system administrator so I don't pay a lot of attention to
> special backup and restore schemes, but it almost seems like I need a
> non-rsync backup and restore modified to not really backup and not really
> restore. If I invent something myself it won't be available on a "normal"
> desktop linux PC. I keep going back to rsync to figure out a way with that,
> but it's one of those cases where it isn't really sane to keep trying the
> same thing and hope the result changes.
>
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20150204/cb4011d0/attachment.html>


More information about the LUG mailing list