Hi everyone
I need a command to select all files inside folder and subfolders created since the creation of a certain file xyz.txt .
Probably using the timestamp or something .
Can someone point me in the right direction ?
Best regards
I have tryed this:
Here's the entire story.
I need to syncronize with rsync folders/files and subfodlers between two places and remove the originals without deleting them (eventually adding a suffix that rsync can exclude on the next sync).
And i need to sync since the creation of a specific file.
My idea was the following.
1 - Create timestampfile names "rsyncLast" .
2 - Use rsync to sync files between two locations (same machine or diferente machines) .
3 - Remove the files from original folder and exclude the files from the next rsync .
I need a command to select all files inside folder and subfolders created since the creation of a certain file xyz.txt .
Probably using the timestamp or something .
Can someone point me in the right direction ?
Best regards
I have tryed this:
Code:
OK - find -newermt "$(date -r rsyncLast +%F%t%T)" /xxx/client/dossier /zzz
OK - find -newermt "$(date -r rsyncLast +%F%t%T)" /xxx > filesToSync.txt
NOK - rsync -raz --files-from=( find . -newermt “$(date -r rsyncLast +%F%t%T)” ) /home/ubuntu/xxx/ /home/ubuntu/zzz/
Here's the entire story.
I need to syncronize with rsync folders/files and subfodlers between two places and remove the originals without deleting them (eventually adding a suffix that rsync can exclude on the next sync).
And i need to sync since the creation of a specific file.
My idea was the following.
1 - Create timestampfile names "rsyncLast" .
2 - Use rsync to sync files between two locations (same machine or diferente machines) .
3 - Remove the files from original folder and exclude the files from the next rsync .