Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 686  / 1 Year ago, fri, february 3, 2023, 8:41:03

I tar ~/Documents to create a backup and my .tgz file turns out to be about 683 MB. I allow my Ubuntu One upload speed to be about 2.5 Mb/s. The sync takes several hours. My Power Management setting is "never suspend". I might on some occasions reboot Ubuntu in the middle of the sync in order to switch to Windows to print a file since Ubuntu does not have a driver for my printer. I get no complaints so this seems like a permissible operation. After the sync completed I downloaded the file from the Ubuntu One website. Strangely the file is now 619 MB and using the diff utility I can see a message that says the binary files are not identical.



Double-clicking the downloaded .tgz file opens the Archive Manager and I get this:



gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now


How did this file get corrupted?


More From » ubuntu-one

 Answers
4

I might on some occasions reboot Ubuntu in the middle of the sync




I think this will be the answer. Also, uploading a big file instead of a bunch of small files is more dangerous. I think you should drop the creating a compressed archive part, and just set Ubuntu One to synchronize your ~/Documents folder.



Alternative solution



I have read an issue in the comments to this question that the files should be revised between two occasions (version control). One way would be setting up a version control system, but that is a big amount of hassle for home usage.



So, if you wish to keep revisions of files, but to use a solution that does not compress the files, you can have a small file to create a copy of your Documents folder with an added timestamp, and let that folder (as the folder uncompressed) synced to Ubuntu One.



But if the size of the folder is big, this download causes too much write on the system (not very good for SSD-based storages) and increases latency. I'm not sure how Ubuntu One treates symbolical links, though... If symbolical links are treated as copies of the file (so the original content is uploaded, not the link inode), you can just create symlinks.


[#37928] Saturday, February 4, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
piscen

Total Points: 134
Total Questions: 117
Total Answers: 133

Location: Indonesia
Member since Wed, Jul 7, 2021
3 Years ago
;