NetAdminTools.com
 
Categories:
GNU/Linux | Homebrew designs | Perl | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS | Hail Support


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Administration
·Backup/Recovery
·Bugs/Fixes
·Certification
·Database
·Email
·File/Print
·Hardware
·Information Grab Bag
·Interoperability
·GNU/Linux ABCs
·Monitoring
·Name Resolution
·Network Services
·Networking
·Remote Control
·Security
·Desktop
·Web
·BSD
·Solaris
·GIAGD
·REALbasic
·All Categories


Quickie backup over the net with GNU tar
Topic: Backup/Recovery   Posted:2001-09-29
Printer Friendly: Print

spacerspacer
If you want to back up a bunch of files over a network (or locally), one approach is to go into the directory you want to back up, and execute:
tar cvpf - . | tar xpv -C /share/backupetc092901
This will save permissions, as well as grab hidden files, dates, symbolic links, /dev stuff, etc. This example sticks everything in the current directory and subdirectories into (in this example) /share/backupetc092901, which happens to be on our NFS server. Works well here at NetAdminTools. Read the tar man page (yow!!!) to customize further. Tar can be much better behaved than cp. Make sure you use GNU tar, since other tar versions don't work as well. One source is: ftp://aeneas.mit.edu/pub/gnu/tar.




Please read our Terms of Use
Microsoft, Windows, Windows XP, Windows 2003, Windows 2000, and NT are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2008 NetAdminTools.com