Back ups conundrum

From: CHYRON (DSMITHHFX) 4 Jul 2014 14:41
To: ALL1 of 14
I'm backing up my work NAS to a 3 TB USB drive using "cp -Rpnv /src /dest". There are a ton of duplicates (~200G at last count). If I delete the duplicates from the backup, next time I run it, it will fetch them all over again (this is terribly slow over 100BT, and it makes the NAS almost unusable for the duration).

Is there a way to exclude deleted duplicate folders from future backups by using eg a text list (I suppose I could just paste the list into the terminal), such as with tar?
EDITED: 4 Jul 2014 14:43 by DSMITHHFX
From: Serg (NUKKLEAR) 4 Jul 2014 14:42
To: CHYRON (DSMITHHFX) 2 of 14
cp? What is this, 1980? How about rsync or rsnapshot?
From: ANT_THOMAS 4 Jul 2014 14:51
To: CHYRON (DSMITHHFX) 3 of 14
-u

Update. Only updates the dest file if the source file is newer.

edit: or maybe I didn't read your post properly, that might not be what you want.
EDITED: 4 Jul 2014 14:52 by ANT_THOMAS
From: CHYRON (DSMITHHFX) 4 Jul 2014 15:06
To: Serg (NUKKLEAR) 4 of 14
Haven't needed to work with those, so I don't know them. A quick scan indicates rsync may not be appropriate for our needs:

1. No files are edited, new files are created. Mostly image and graphics formats.

2. I'm not sure our aging Linkstation NAS supports rsync over afp (or at all). The compression thing would pile overhead on the pitifully underpowered NAS cpu. A lot of the files are already compressed (jpg, pdf etc).

3. I'm not sure this wouldn't turn out to be a much bigger headache to deal with. I'm looking for a qwikfix(TM).

4. We will probably need to to replace (and upgrade) the NAS sometime in the fairly near future (I've advised against replacing drives in it). At that point I will review rsync and other backup options.
From: Matt 4 Jul 2014 18:26
To: CHYRON (DSMITHHFX) 5 of 14
Seconding rsync. It can very easily only copy what has changed, even if in your case this is new files.

AFP being Apple File Protocol? If the NAS also allows SSH use that, otherwise rsync will happily copy files as long as you can mount the AFP volume on a Linux box. I've never done it, but I'd be very surprised if you can't mount the AFP volume in Linux

Finally, rsync is the quick fix:
 
Code: 
rsync -arz /src /dest

Only thing to note is to pay attention of trialling slashes on the source and destination. If you leave off the traling slash, rsync will create the last folder of path in the destination, but if you include the trailing slash on the source, rsync will skip that folder and copy subfolders and files of that folder directly to the destination.
From: CHYRON (DSMITHHFX) 4 Jul 2014 19:03
To: Matt 6 of 14
Both volumes are formatted HFS+. Doing this on a linux box isn't going to work. Weirdo file and folder names that include eg "/".
From: Matt 4 Jul 2014 21:40
To: CHYRON (DSMITHHFX) 7 of 14
HFS+ mounts (readonly) fine on Linux. Read-write is not as easy, but as you're copying data from the volume you shouldn't need to worry, except of course when restoring the backup. Natch.

Forward-alashes, like any other special character (space etc.), shouldn't be a problem as long as you escape then with a backslash.

If and when you replace the NAS, probably best to pick a common filesystem for the volumes.
From: Ken (SHIELDSIT)15 Jul 2014 23:52
To: Matt 9 of 14
Is that 
Quote: 
Natch
supposed to mean naturally?
From: Chris (CHRISSS)16 Jul 2014 08:22
To: Ken (SHIELDSIT) 10 of 14
Natch.
From: Ken (SHIELDSIT)16 Jul 2014 08:51
To: Chris (CHRISSS) 11 of 14
Snatch.

Saying natch makes you guys sound like hipster rednecks.
From: CHYRON (DSMITHHFX)16 Jul 2014 10:58
To: Ken (SHIELDSIT) 12 of 14
From: Ken (SHIELDSIT)16 Jul 2014 11:02
To: CHYRON (DSMITHHFX) 13 of 14
Fucking Jethro & the seement pond.
From: CHYRON (DSMITHHFX)16 Jul 2014 17:27
To: Ken (SHIELDSIT) 14 of 14
Mister Drysdale!