Why not rsync? Off the top of my head: rsync -avp --delete src/* dst/
Stop googling and just read the rsync man page
Linux questions Rules (in addition of the Lemmy.zip rules)
Tips for giving and receiving help
Any rule violations will result in disciplinary actions
Why not rsync? Off the top of my head: rsync -avp --delete src/* dst/
Stop googling and just read the rsync man page
Stop googling and just read the rsync man page
Fair enough, sometimes you get tunnel vision with a problem.
For what I see the command doing, thanks for the progress flag, it seems to be doing what I need. Reading the manual, it also looks like it's not copying files that have the same size and timestamp in the source and destination, which is also what I wanted, even though I didn't make it explicit. I'll have to take a look to making the command parallel, probably by running it on every subdirectory of ~Music at once.
Thank you for your help!
rsync is made for quickly backing up huge directories over whatever connection. believe me you won't need to script anything or parallelise it. just check the available flags.
You probably want an uppercase P.
rsync -avP --delete src/* dst/
Oops, I did actually mean -p but that's included in -a. Years of muscle memory doesn't go away. -P is a good one too though.
I always remember alien vs Predator. And the Predator is uppercase because he's more intelligent. And sometimes alien vz Predator if I want compression.
i agree with shadow, just use rsync.
Don't remember what all everything does but my default to move to my mp3 player is
systemd-inhibit rsync -avh --delete source dest
The systemd-inhibit is to keep it from falling asleep, --delete removes any files present at destination but not at source.
Out of curiosity, how do you organize your file formats? I have a mess of separate FLAC and separate MP3 files. I'll just regularly convert all my FLAC to a mirrored directory of MP3s and copy that onto SD.
It's a pain in the butt though.
I finally almost have 64gb of music the max on my SD card, so it's time to start throwing music into an archive, too.
I don't save FLAC files, as I don't have that much space (my library is 82GB big with 17629 tracks atm). What I do is that I have a script I wrote to convert all the files to Opus. I still have some old mp3s laying around that I convert or find better sources over time.
As for rsync command, it's taken far longer than I would like to sync all the files. I've gotten an idea about caching the filesystem status for later uses to speed up the process, so I may end up writing a script after all!
You know more than I do, I think, but how would writing the script speed up the file transfer?
The first time you use rsync, it's going to take a long ass time because you are copying EVERY file. But after the first sync, you're just copying changes, so it'll take much less time.
I use fre:ac to convert things pretty trivially, but I suspect you may enjoy writing scripts, to which I say: enjoy!