I have an iBasso digital music player and I need a little help uisng rsync. I want to copy all of my muisc from /home/garrett/Music/ into my SD card which is at /media/garrett/6BF6-AC8A/ I'm currently using the command
rsync -a --delete /home/garrett/Music/ /media/garrett/6BF6-AC8A/ The thing is I would also like to transfer my audio books which I don't keep in my music directory, they are in /home/garrett/Audiobooks/ I would like to add the audiobooks direcotry to the command above but instead of only coping the contents of the Audiobooks directory the way it's doing with my Music directory I would like it to copy the directory itself and it's contents, not just the contents. Secondly how do I keep the command listed above from deleting the Audiobook DIR everytime it runs, I need it to make an exception for the Audiobooks DIR. Thanks.
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.