Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Preserve resource forks during backups via tar and ftp' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Preserve resource forks during backups via tar and ftp
Authored by: John Kiniston on Aug 11, '05 02:22:44PM

OS X Server has a nice feature in its FTP server that allows a user to download disk images or tar files created by the server of directories.

Say I connect to a OS X sever and wanted to download a copy of my Public folder

ftp> get Public.dmg
local: Public.dmg remote: Public.dmg
227 Entering Passive Mode (10,1,1,80,42,99)
150 Opening BINARY mode data connection for /usr/bin/mkdmg - -s Public.
14305 11.04 KB/s
226 Transfer complete.
14305 bytes received in 00:01 (11.02 KB/s)

There's no Public.dmg on the server just the folder Public

You can download Folders as TAR files as well the same way

ftp> get Public.tar
local: Public.tar remote: Public.tar
227 Entering Passive Mode (10,1,132,80,42,136)
150 Opening BINARY mode data connection for /usr/bin/tar -cf - -- Public.
10240 57.06 KB/s
226 Transfer complete.
10240 bytes received in 00:00 (56.41 KB/s)
ftp> get Public.tar.gz
local: Public.tar.gz remote: Public.tar.gz
227 Entering Passive Mode (10,1,132,80,42,137)
150 Opening BINARY mode data connection for /usr/bin/tar -cf - -- Public | /usr/bin/gzip -c.
71680 15.25 KB/s
226 Transfer complete.
71680 bytes received in 00:04 (15.25 KB/s)

If you want to compress just a file that also works

ftp> get config.cache.gz
local: config.cache.gz remote: config.cache.gz
227 Entering Passive Mode (10,1,132,80,42,151)
150 Opening BINARY mode data connection for /usr/bin/gzip -9 -c config.cache.
704 757.15 KB/s
226 Transfer complete.
704 bytes received in 00:00 (254.62 KB/s)



[ Reply to This | # ]
Preserve resource forks during backups via tar and ftp
Authored by: ruaric on Aug 12, '05 03:49:38AM
I haven't tried this yet but if it works, that is very cool! Thanks for the tip!!

[ Reply to This | # ]
Preserve resource forks during backups via tar and ftp
Authored by: macshome on Aug 12, '05 09:19:42AM

Yeah, this is a long time feature that often gets missed. The dmgs are fairly new, but it's always been able to binhex stuff. In fact if you have the conversions turned on and browse the ftp directories it will show forked files with .bin on the names, just so you don't forget.

---
http://www.afp548.com
Breaking my server to save yours.



[ Reply to This | # ]