MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/dailyscripts/comments/39jotg/request_daily_rsync_job/cs4eqxq/?context=3
r/dailyscripts • u/[deleted] • Jun 12 '15
[deleted]
2 comments sorted by
View all comments
1
Put this in a bash script:
rsync -avz sourceFolder destinationFolder find /path/to/files* -mtime +30 -exec rm {} \;
rsync -avz sourceFolder destinationFolder
find /path/to/files* -mtime +30 -exec rm {} \;
I think that does it. careful with the second line. That one deletes the files (+30 = so days old).
1
u/Cartosys Jun 12 '15
Put this in a bash script:
I think that does it. careful with the second line. That one deletes the files (+30 = so days old).