Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
guys, I'm using this tar command in order to make a full backu, but for some reason is not completing... "it hangs"
Code:
tar -zcvpf /mnt/backup/fullbackup.tar.gz / --exclude=mnt/backup > /home/user/backup.log
I know there are open files by the system, and therfore, I've tried to use --exclude=dev --exclude=proc, and other folder that I think the system might be using, but still same results. Would you mind sharing some of the command you use for making full backups?
Don't backup /proc, /tmp, /sys, /var/tmp, /mnt, /dev or /media. /proc and /sys files are generated on the fly by the kernel. The /dev directory is created when you boot, and changes are made by udev as you run. /tmp is not important and often cleared when you reboot. /mnt contains filesystems you mount, often large external drives. /media is for removable media that is auto mounted.
(directories under /mnt you might want to backup, but on a case by case basis, as in an internal hard drive mounted there)
Be sure to scan through the tar info manual. Do you use file attributes that tar doesn't backup?
It may depend on your version of tar, and which attributes you need backed up. E.G. se-linux or posix capabilities.
Read the section on dumps. The -g option may be useful for producing incremental backups.
I'm betting that the hangup is due to trying to backup /proc, which will generate a core image of your entire system. You may have a have circular link somewhere.
nahh, I gave up on tar. I started using dump which gets the backup done pretty fast. I'm talking about 7 Gigs of space down to 1.5 Gig in about 20 min...
nahh, I gave up on tar. I started using dump which gets the backup done pretty fast. I'm talking about 7 Gigs of space down to 1.5 Gig in about 20 min...
I am interested on this... how are you using the dump command to achieve this?
here's a good link to get your feet wet with dump.... I'm still getting to know the command, but I think one of the best functionality is the built in options of making full, incremental, and differential backups
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.