-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrsync.rst
More file actions
47 lines (38 loc) · 1.42 KB
/
rsync.rst
File metadata and controls
47 lines (38 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
##########
# If you're making copies from a local machine to a remote server you can use
rsync, run e.g.:
#rsync --dry-run -vvazPuiL --exclude-from='rsync_cmd.txt' project_name host_server:remote_url
#rsync -vvazPuiL --exclude-from='rsync_cmd.txt' /full/path/to/project_name host_server:remote_url
# Specify full path names carefully: remote_url should end in "/", e.g. /ifs/projects/proj_YYY/
# Explanation of some options for rsync:
# -u option to avoid deleting newer files at target, ie do not delete the destination file and do not copy the old file.
# --delete delete at target if absent at source (not used here though)
# -z to compress during transmission (faster)
# -P show progress
# -a archive mode; same as -rlptgoD (no -H); which ensures that symbolic links, devices, attributes, permissions, ownerships, etc. are preserved in the transfer. The -r option copies recursively.
# -i view differences between source and destination files
# -L transform symlink into referent file/dir (which here overwrites the -l included in the archive option).
##########
##########
# Files to exclude
# Generated by Mac:
.DS_Store
.Spotlight*
.DS_Store*
._.DS_Store*
.Trashes*
._.Trashes*
.apdisk*
._.apdisk*
.fseventsd*
.TemporaryItems*
._.TemporaryItems*
# Generated by R:
.Rhistory
#*.RData
# Generated by custom function in my bashrc:
.dir_bash_history
# Specific to a given project:
data.dir/arrayQualityMetric*
data.dir/expressio*
##########