]>
Commit | Line | Data |
---|---|---|
d87a489f IB |
1 | ### <%= @dirname %> <%= @local_folder %> ### |
2 | LOCAL="<%= @local_folder %>" | |
3 | REMOTE="<%= @remote_folder %>" | |
4 | ||
5 | cd $BASE/$LOCAL | |
6 | cat > $EXCL_FROM <<EOF | |
7 | <%= @exclude_from.join("\n") %> | |
8 | EOF | |
9 | cat > $FILES_FROM <<EOF | |
10 | <%= @files_from.join("\n") %> | |
11 | EOF | |
12 | ||
13 | OUT=$RSYNC_OUTPUT/$LOCAL | |
14 | rsync -XAavbrz --fake-super -e ssh --numeric-ids --delete \ | |
15 | --backup-dir=$BAK_BASE/$LOCAL \ | |
16 | <%- unless @args.empty? -%> | |
17 | <%= @args %>\ | |
18 | <% end -%> | |
19 | <%- unless @exclude_from.empty? -%> | |
20 | --exclude-from=$EXCL_FROM \ | |
21 | <% end -%> | |
22 | <%- unless @files_from.empty? -%> | |
23 | --files-from=$FILES_FROM \ | |
24 | <% end -%> | |
25 | $DEST:$REMOTE . > $OUT || true | |
26 | ### End <%= @dirname %> <%= @local_folder %> ### |