Re: File archiver using git

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/27/06, Grzegorz Kulewski <kangur@xxxxxxxxxx> wrote:
Does it (and GIT in general) work ok with file permisions, ownership, soft
and hard links, named sockets, device files and similar "strange"
filesystem objects? Do I need any options to GIT to make it work with
them?

Git tracks data, not filesystems.  That means it doesn't handle any of
the things you mentioned except soft links.  It doesn't even handle
empty directories, though I don't accept the argument that they do not
constitute data.  If you want to capture a filesystem, I would
recommend running "find . -ls" to create a listing file from which
everything you mentioned can be reconstructed and then putting the
filesystem together with the listing file into git.

Can I for example securely backup or even version-control /etc directory?

With the above technique, you can do both.  However, if you just want
to back up /etc, you might be better served by a backup tool.  For
example, I use rsnapshot ( http://www.rsnapshot.org/ ).

Matt
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]