I don't have the technical knowledge to bring this idea into the real world but: What do you think about adding a tar/zip option? I like to rsync my /Documents directory and as i was doing so this morning my pen drive ran out of room. I only ever make minor changes to /Documents and sometimes I forget to backup what I've changed and then forget what I've changed and so rsync makes it simple (especially with --delete). This is possibly beside the point: To get everything to fit on the pen drive I discovered deleting .Trash* freed up the space. My question is why does deleting a file move it to .Trash but not make the space available for reuse? -- :-)~MIKE~(-: -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20150923/aa7daaa3/attachment.html>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This isn't really an rsync question but... No, moving a file to .Trash does not free space. As far as the file system is concerned this is just another directory and the file is not actually deleted yet. As far as compression goes, you have 2 choices: #1 Use compression on wherever you sync the pen drive with so rsync is only dealing with compressed files #2 Use a compressed file system on the pen drive (this will almost certainly have compatibility issues with multiple OSs especially if you are using computers that you don't control. Personally, I always use computers that I control and I use OwnCloud to keep such files in sync. On 09/23/2015 02:29 PM, Michael Havens wrote:> I don't have the technical knowledge to bring this idea into the > real world but: What do you think about adding a tar/zip option? I > like to rsync my /Documents directory and as i was doing so this > morning my pen drive ran out of room. I only ever make minor > changes to /Documents and sometimes I forget to backup what I've > changed and then forget what I've changed and so rsync makes it > simple (especially with --delete). This is possibly beside the > point: To get everything to fit on the pen drive I discovered > deleting .Trash* freed up the space. My question is why does > deleting a file move it to .Trash but not make the space available > for reuse? > > -- :-)~MIKE~(-: > >- -- ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._., - -*~ Kevin Korb Phone: (407) 252-6853 Systems Administrator Internet: FutureQuest, Inc. Kevin at FutureQuest.net (work) Orlando, Florida kmk at sanitarium.net (personal) Web page: http://www.sanitarium.net/ PGP public key available on web site. ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._., - -*~ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlYC8QoACgkQVKC1jlbQAQemcACeM65IdvxFGQH0ZD00OxS49qrY 8kAAn1hiFA+Su7f/UUxodfO7fQpj3NE+ =pdoq -----END PGP SIGNATURE-----
Michael Havens <bmike1 at gmail.com> wrote:> why does deleting a file move it to .Trash but not make the space available for reuse?Because, as already said, as far as the filesystem is concerned it's still a file taking up space. Longer answer: I guess you are using a "desktop" interface, click the file, and tell the file manager to delete it. It doesn't delete it, it moves it to the Trash (english: wastebasket) from where you can recover it if you decide it was a mistake deleting it. You have to explicitly empty the wastebasket before the file actually disappears and the space becomes available again. While this isn't really an rsync issue, I see two workarounds : 1) Discipline yourself to emptying the wastbasket from time to time - I've seen user with *massive* amounts of stuff in there as they've never emptied it for as long as they've owned the computer ! 2) Use an "--exclude" clause to rsync to exclude files in the wastebasket, then these files won't get synced to your flash drive.
Possibly Parallel Threads
- BUG: cannot move messages to root mailfolder in namespace "There can be only one namespace with inbox=yes"
- expire_tool trouble + howto part sasl from 1.1.7 -> 2.0.1?
- Video Strangeness in Wine
- BUG: cannot move messages to root mailfolder in namespace "There can be only one namespace with inbox=yes"
- Wastebasket/Recycle bin?