QuicksearchArchivesCalendar
|
Sunday, August 10. 2008Relative DifficultyTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Normally I would just write:
robocopy SourceDir \\RemoteServer\Share\TargetDir /mir (The mirror flag ensures only files that have changed get copied and any deleted files are removed.) Now if compression or greater security is in order then would take two lines, one to call pkzip and one to sent it by whatever variety of secure FTP your client computer exposes. If you think about it, your Linux solution is more complex. You have to tar and zip the file as separate actions, and the person on the other end has do likewise to unpack them.
Yes, but you've used a special-purpose package for that, which might not exist or you might not know about for a similarly complex task. Unix systems let you build up configurable tools from simple, general parts.
Wow, you are ignorant. Fortunately that is curable.
First of all we have this thing called the Internet which lets us grab whatever tools we what. We are not limited to the base OS for all functionality. Secondly, robocopy is part of the Windows Resource Kit. Every admin and developer I know installs this before touching a box.
I'd do it just like this...
tar -cv /etc|bzip2 -9 -c | ssh -i /path/to/id_rsa user@backuphost.com \ "(cat > /path/to/backup.tar.bz2)" You mistakenly assume you can't simply replace the windows shell with a real one, but you can, easily, and it's free. http://www.cygwin.com/setup.exe Gives you a full Linux shell on Windows with all the goodies. I manage all my Windows and Linux servers via ssh and cron. |
self.about()My name is Joshua Kugler, and I'm a programmer/developer and a system admin. On this here blog, I pontificate about all things related to code, work, projects, and sometimes just life. Look around, snag my RSS feed, and drop me a line, if you wish. All opinions are mine, and not necessarily those of my employer.
self.links()CategoriesCopyright |
|||||||||||||||||||||||||||||||||||||||||||||||||