05-17-2015
Well, rsync syncs between 2 machines, and according to to the order of arguments passed (local/remote) it will delete unwanted files at the one, and copy new ones to the other.
You would need to define which device is your 'base' and sync from/to there.
But syncing between 3 exchangeable media is always risky and might result in accidently deleted files.
rsync would be a good choice, but i dont know the required arguemtns to make it 'safe'.
5 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello all,
I am fairly new to unix/linux. I am using Ubuntu 10.10 as a server.
I use a laptop that is Windows based (windows 7 ultimate) and I store my music library on that machine.
I was hoping to use rsync to make sure any changes that happen to my music on my computer will be... (0 Replies)
Discussion started by: marcozd
0 Replies
2. Shell Programming and Scripting
Hi Everyone,
We have a requirement to sync files with multiple nodes. We need to run the rsync sequentially on each node, if one of the node fails we need to recover the files to previous state in all nodes. I know that we have backup option in rsync which takes the backup of files before... (0 Replies)
Discussion started by: MVEERA
0 Replies
3. UNIX for Advanced & Expert Users
I am trying to sync the source tree into backup and somehow
this one file dumper.c is not in sync, see below after running the script:
/u/prj/dir$ l -tr dumper.c /v/tmp/prj_src/dir/dumper.c
-rw-rw-r-- 1 prj group 15635 Jun 20 16:28 /v/tmp/prj_src/dir/dumper.c
-rw-rw-r-- 1 prj ... (2 Replies)
Discussion started by: migurus
2 Replies
4. BSD
Hi,
During OS installation of FreeBSD7.4/i386 I missed to include ports collection.
Now when I try with sysinstall command via ftp servers avaliable in tha list it says "unable to open ftp connection. Error:0"
Could You Please suggest me the exact site wher I can get ports collection via FTP to... (1 Reply)
Discussion started by: Priya Amaresh
1 Replies
5. What is on Your Mind?
Hello All,
This is regarding a suggestion to create a sub forum for those THREADS which have been rated 3 or more stars out of 5(Off-course good threads only). As we all know we have thread rating system in each thread, so to have a collections of all those threads which had been rated good, so... (1 Reply)
Discussion started by: RavinderSingh13
1 Replies
LEARN ABOUT LINUX
rsync_selinux
rsync_selinux(8) rsync Selinux Policy documentation rsync_selinux(8)
NAME
rsync_selinux - Security Enhanced Linux Policy for the rsync daemon
DESCRIPTION
Security-Enhanced Linux secures the rsync server via flexible mandatory access control.
FILE_CONTEXTS
SELinux requires files to have an extended attribute to define the file type. Policy governs the access daemons have to these files. If
you want to share files using the rsync daemon, you must label the files and directories public_content_t. So if you created a special
directory /var/rsync, you would need to label the directory with the chcon tool.
chcon -t public_content_t /var/rsync
To make this change permanent (survive a relabel), use the semanage command to add the change to file context configuration:
semanage fcontext -a -t public_content_t "/var/rsync(/.*)?"
This command adds the following entry to /etc/selinux/POLICYTYPE/contexts/files/file_contexts.local:
/var/rsync(/.*)? system_u:object_r:publix_content_t:s0
Run the restorecon command to apply the changes:
restorecon -R -v /var/rsync/
SHARING FILES
If you want to share files with multiple domains (Apache, FTP, rsync, Samba), you can set a file context of public_content_t and pub-
lic_content_rw_t. These context allow any of the above domains to read the content. If you want a particular domain to write to the pub-
lic_content_rw_t domain, you must set the appropriate boolean. allow_DOMAIN_anon_write. So for rsync you would execute:
setsebool -P allow_rsync_anon_write=1
BOOLEANS
system-config-selinux is a GUI tool available to customize SELinux policy settings.
AUTHOR
This manual page was written by Dan Walsh <dwalsh@redhat.com>.
SEE ALSO
selinux(8), rsync(1), chcon(1), setsebool(8), semanage(8)
dwalsh@redhat.com 17 Jan 2005 rsync_selinux(8)