Just wondering what my options are (seemingly somewhat limited): I tested it in very limited cases, and ensure it works all the way before using.Just finished copying a bunch of stuff onto my DNS-320 now would be a good time to back it up. For what its worth, this is just a skeleton. # command syntax: arg1 is source, arg2 is dest It should duplicate behavior exactly as you asked. Here's a short bash script that should do as you require. You'll miss out on the speed-ups related to rdiff, but since you're not really using it for that, it shouldn't effect anything. This will perform exactly as you asked, but it won't use rsync. somedir/newtime/file2.txt -> /somedir/oldtime/file2.txt (LINKED)īecause of the links, you don't have to have any extra disk usage, so you avoid quickly exploding size, but it is a bit different than what you requested exactly. The resulting structure would be /somedir
You could sync to it by doing something like rsync -rutv -remove-source-files /external/intake/ /somedir/newtime -link-dest="/somedir/oldtime" -compare-dest="/somedir/oldtime". If you're willing to change your output format slightly, you could create a new directory for every move, with a timestamp. Rsync does not support and hooks or renaming structures, but I think you have several options. The full path after the move would be something like: /external/intake/project/user/(possible additional directories)/$time-file.txt This way I would at least see that there were two of them if they were copied over with the copy time stamp. What I would like to do is timestamp files as they are moved between directories. The external path does contain additional sub-directories, ie: /external/intake/project/user/(additional directories they may build while uploading files) rsync -rutv -remove-source-files /external/intake/ /internal/intake/ I'm currently moving them between directories with rsync, which sees the change and overwrites the prior upload. Meaning they had a file from Month1 and one from Month2, but both were named mylog.csv. However I recently had someone upload two different files with the same name.
I'm using rsync to move files uploaded on an extern system to a internal system.