Forum Moderators: bakedjake

Message Too Old, No Replies

Basic Copying Folders With Subfolders Question

         

Planet13

5:45 am on Feb 22, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Suppose I am making some manual backups.

In my /home/pictures folder I have lots of subfolders and lots of pictures.

On my backup USB drive, I already have a backup that has SOME of those folders and SOME of those picture files (but not all of them). I also have folders and files from ANOTHER computer in that same backup folder on the USB drive.

So if i want to backup from my desktop again, what would happen if I just grabbed my /home/pictures folder and dragged it over to the D:/backups folder (where the /pictures backup folder resides, with subfolders and pictures from other computers?

1) Will it simply overwrite all the folders, subfolders and files in the /pictures folder?

2) Will it "merge" the folders and files? (i.e., keeping the existing subfolers and picture files in the /pictures folder on the USB drive while ADDING any subfolders and picture files from my home/pictures folder that don'currently exist on the D:/backups/pictures folder?

3) Something else?

Or does it depend specifically on the Distro / Desktop / File manager being used?

I am using Linux Mint 17.3 cinnamon with nemo

graeme_p

6:05 am on Feb 22, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It depends on the file manager. I think Nemo will merge, but you could test on a subfolder.

You could also try rsync - do a dry run first (--dry-run option). There are GUIs for it (I used to use Grsync)

D:/backups/pictures?


I take it you are dual booting?

Planet13

6:29 am on Feb 22, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Er... no dual booting...

I just had windows "stuck in my head"

I hadn't been using linux for a while and completely forgot how linux mint mounts USB drives.

I was fairly happy using Win 7, when all of a sudden, it wouldn't update anymore.

After snooping around, it seems like there was the possibility that I had a non-certified (meaning bootlegged) copy of Win 7 on the machine.

This is what you get when you buy a used computer with Win 7 pre-installed on it (but only a COA for Vista )

So I am pretty happy to be back on Linux on this particular machine.

This time I may learn how to use it, instead of just tying to run all my windows apps under wine (which was never really successful for me anyway.)

Thanks!

dstiles

9:25 pm on Feb 23, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I use luckyBackup both for backing up and for major copying (eg just used it to copy from one 8TB drive to another). Very versatile and includes a pre/post option to run a program such as GZ after backing up individual files.

Planet13

9:34 pm on Feb 23, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks for the suggestion, dstiles.

Will look into it here.