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.
Hello, I have a file, mybackuplist, with a list of paths: /home/yod/somefile
/home/yod/Documents/someotherfile
etc...
I use it to make a tarball with the following command tar -cpvf backup.tar -T mybackuplist
I noticed that the file permissions are indeed saved but the directories permissions are lost,
so someotherfile maintains the correct permissions
but /home/yod/Documents
/home/yod
/home
lose the permissions
Now, if in the file list, I specificy the directory instead of the file, the directory and the file permission are saved correctly.
So if in mybackuplist I specify /home/yod/Documents/
The permissions of /home/yod/Documents/
/home/yod/Documents/someotherfile
are saved correctly
I wonder if there is a way to specify the file and not lose the parents directories permissions.
Im using tar but I wouldn't mind using something else
Thanks for the suggest but the problem with rsync is that I can't save the backup in a cloud, do you know if there is a way?
My plan was: make a shell/python script that creates a tarball and upload it in google drive through rclone and run the script periodically with a cronjob or systemd/Timers
Can you clarify your plans a little more? Any normal GNU/Linux-based VPS is going to have full Rsync support, so I would second the recommendation to use the Rsync protocol. However, if privacy or confidentiality is a factor then you will have to encrypt prior to uploading and that complicates things.
Can you clarify your plans a little more? Any normal GNU/Linux-based VPS is going to have full Rsync support, so I would second the recommendation to use the Rsync protocol. However, if privacy or confidentiality is a factor then you will have to encrypt prior to uploading and that complicates things.
I don't have a server, I just want to backup some file of my OS. I can rsync to another hard disk but I prefer in a cloud to make it more available.
So when I format my OS, I just need to download it and extract. Thats what I was thinking.
Server is another name for "cloud". Can you please specify which one or ones you are planning for?
Most are rather weak in their offerings. However, as mentioned a plain old VPS will give you a lot for your money. Or you can use Rsync to save to a larger USB drive.
Server is another name for "cloud". Can you please specify which one or ones you are planning for?
Most are rather weak in their offerings. However, as mentioned a plain old VPS will give you a lot for your money. Or you can use Rsync to save to a larger USB drive.
Yea I know that a cloud is a server, I thought you were saying I had to backup a server, sorry my english is bad.
Well, a VPS is a good choice but I don't want to pay for such a small thing. I have to backup mostly config files. Its a overkill
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.