1
I am using rsync to copy folders/ subdirectories from certain date and exclude all folders which is less than 180 days old.
My Folder Structure on Server1:
./BradsbarIN
./2016-06-01
a.jpg
b.jpg
c.jpg
./2016-06-02
a.jpg
b.jpg
c.jpg.
These dates go onto 2012-01-01. I want to rsync only last 180 days folders and exclude everything below from this date(2016-03-01).
rsync -avzn --list-only --include 'BradsbarIN/' --include 'BradsbarIN/2016-06-01/***' --exclude '*' -e ssh [email protected]:/path/to/old/data/ /path/to/new/data
我想仅复制2016-03-01中文件夹中的所有数据。是否有可能做到这一点。使用Rsync从特定日期复制文件夹/子目录