I need to setup a CentOS box offsite to have a series of files replicated to it. My problem is this machine won't have Samba on it but I need to replicate the hierarchy in question in such a manner that I can restore from it and retain file system permissions. That's where I am stumped, anyone got any ideas? Thanks, jlc
At Fri, 29 May 2009 21:06:40 +0000 CentOS mailing list <centos at centos.org> wrote:> > I need to setup a CentOS box offsite to have a series of files replicated to it. > My problem is this machine won't have Samba on it but I need to replicate the > hierarchy in question in such a manner that I can restore from it and retain > file system permissions. > > That's where I am stumped, anyone got any ideas?Get a port of GNU Tar for MS-Windows and install it and a SSH client on the Windows Machines. Use GNU Tar + SSH to ship the files. GNU Tar will preserve the file permissions. Once the tar files land on the remote (offsite box), unpack the tar file(s) to the local disk. For the more adventurous, install Cygwin on the Windows machinesand then you can fire up a bash shell and do: tar czvf - -C local-path file ... | ssh remotebox tar xzvf - -C path-on-remote-box To restore: ssh remotebox tar czvf - -C path-on-remote-box .|tar xzvf - -C local-path> > Thanks, > jlc > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > >-- Robert Heller -- 978-544-6933 Deepwoods Software -- Download the Model Railroad System http://www.deepsoft.com/ -- Binaries for Linux and MS-Windows heller at deepsoft.com -- http://www.deepsoft.com/ModelRailroadSystem/
Joseph L. Casale wrote:> I need to setup a CentOS box offsite to have a series of files replicated to it. > My problem is this machine won't have Samba on it but I need to replicate the > hierarchy in question in such a manner that I can restore from it and retain > file system permissions. > > That's where I am stumped, anyone got any ideas?Rsync over ssh is usually the best way to replicate files periodically. -- Les Mikesell lesmikesell at gmail.com
Joseph L. Casale wrote:> I need to setup a CentOS box offsite to have a series of files replicated to it. > My problem is this machine won't have Samba on it but I need to replicate the > hierarchy in question in such a manner that I can restore from it and retain > file system permissions. > > That's where I am stumped, anyone got any ideas? >use ntbackup on the windows machine to create .bkp file, then copy that to the DR backup with scp or rsync or whatever. ntbackup can append incremental backups to the same .bkp file, which is sort of like a compressed tarball with more features and native windows file attributes (its not at all compatible with tar, its just structurely somewhat similar). ntbackup also uses VSS snapshots on NTFS volumes, so the backups are point-in-time consistent.
on 5-29-2009 2:06 PM Joseph L. Casale spake the following:> I need to setup a CentOS box offsite to have a series of files replicated to it. > My problem is this machine won't have Samba on it but I need to replicate the > hierarchy in question in such a manner that I can restore from it and retain > file system permissions. > > That's where I am stumped, anyone got any ideas? > > Thanks, > jlchttp://setacl.sourceforge.net/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 258 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20090529/494f610a/attachment-0004.sig>
>http://setacl.sourceforge.net/Yeah, I thought of using the MS reskit utils as I have logon scripts which already make use of them and through those I see you can backup acls to a txt file but the thought of restoring some of the data and then selectively applying a backed up acl would be cumbersome :( This isn?t looking easy. I *could* setup Samba on te remote server and establish a vpn but I have to say all my experiences with Samba have been less than what I would consider, enterprisable and that could very well be my simple extreme lack of knowledge with it. Thanks! jlc