UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
okay this should be simple but I am really not getting it -
Firstly, thank you gilead for taking time to post.
I want to backup to /dev/st0 everything within /root, but NOT /donotbackup
Sounds simple ehh? I am aware of the -X [file] option within the tar man page however I assume I would have to keep updating the file before every backup cycle.
My test structure is -
-/root
-/donotbakup
-/Karls-help-world
Ideally I would like to say, "send everything in /root to /dev/st0 but not the directory, /donotbackup"
I have been using this command and reckon I am close:
tar -cvf --exclude /root/donotbackup/ --file=/dev/st0 /root/
Hi Karlos, yep, it's always "fun" trying to get the right switches for commands
Looking at the output you've posted, I'd say the problem is with using the 'f' option as well as the --file option. Can you try it with the following syntax?
Code:
tar -cv --exclude /root/donotbackup --file=/dev/st0 /root
Outstanding! Its sad (no offence to all seasoned linux guru's) but linux always gives such a big buzz when you get something working after days weeks of searching?
Anyway, sincere thanks for the command syntax, it worked a treat.
Take it easy,
karloslambchop.
PS I think my girlfriend is slowly becoming a linux widow!!! hehe its 01:44 am ...
Outstanding! Its sad (no offence to all seasoned linux guru's) but linux always gives such a big buzz when you get something working after days weeks of searching?
Yep! The thrill of discovery is half the fun! Of course, the more you discover, the more complicated stuff you can do and that means more searching - and more of a buzz
Quote:
Originally Posted by karloslambchop
PS I think my girlfriend is slowly becoming a linux widow!!! hehe its 01:44 am ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.