Welcome to WebmasterWorld Guest from 23.20.13.165

Forum Moderators: bakedjake

Message Too Old, No Replies

Basic Copying Folders With Subfolders Question

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

Senior Member

WebmasterWorld Senior Member planet13 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:June 16, 2010
posts: 3823
votes: 29


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
6:05 am on Feb 22, 2016 (gmt 0)

Senior Member from GB 

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

joined:Nov 16, 2005
posts: 2688
votes: 92


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?
6:29 am on Feb 22, 2016 (gmt 0)

Senior Member

WebmasterWorld Senior Member planet13 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:June 16, 2010
posts: 3823
votes: 29


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!
9:25 pm on Feb 23, 2016 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member dstiles is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:May 14, 2008
posts:3153
votes: 4


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.
9:34 pm on Feb 23, 2016 (gmt 0)

Senior Member

WebmasterWorld Senior Member planet13 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:June 16, 2010
posts: 3823
votes: 29


Thanks for the suggestion, dstiles.

Will look into it here.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members