Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I'm probably doing something really stupid here, but I can't get star to append files reliably. I'm using star rather than tar because I want to save the security context info for SELinux in FC.
The following is a snippet from an incremental backup file I run, and this works fine (I tailored it in response to the problems I'll explain below).
All I'm trying to achieve is a backup of various data files from midnight yesterday (I'm planning to play with the start times once I get the basics correct).
The second version will add files from /home and /root, andf that is it. No errors are reported, and evewrything looks like it's working fine. However a star -t reveals only the first couple of lines add anything.
Strangely it has worked completely a couple of times (the -acl is there as an attempt to fix the problem and I'm not sure I need it).
Has anyone encountered anything similar?
Is it me or my version of star (star 1.5a54 (i386-redhat-linux-gnu)) or something else?
I can't see anything useful on the web, and I've tried -u (update) in place of -r (replace).
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
You reminded me that my backup was already long due... thanks.
I assume you can read man pages as well, so this might be a stupid statement, but it says:
Code:
example% find . find_options -print | star -c list=- f=/dev/rmt/1bn
Note that this does not work if the file names from output of the find command include new line characters.
That is the only thing I can think of...
Have you tried to redirect the output of find into a file and use this file with the list= command? Just for testing.
No I hadn't. I'll give it a go. However, if I do each star individually using -c and a unique destination, it creates the file with the correct contents OK.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.