03-31-2013
Best would be a shell script of Rsyncs
Hello,
I was thinking of the Crontab stuff, but it looks a little messy, because one of the machines is my laptop , (which goes to sleep mode , or I shut it down) when I go out, and the other is the office computer.
1) Create a shell script of rsync commands.
So I guess in the situation , it would be best to
2) check filenames in both systems first, and see which files have got changed today at work. For this,
Combination of find with some options must work here I guess.!
ls -ltR would give the entire set of files ordered from time from oldest to recent.
3) Delete appropriate files in both systems which are extra ( like autosave files etc etc)
Here I think find could be useful . but it needs to be run on both machines
4) Then run a shell script of Rsync commands,
Any suggestions to improve this ??
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to take daily backup(11pm) of /var/www to /mnt/bak excluding /var/www/videos and /var/www/old. HOW to implement a rotating snapshot method, so that i can have multiple(say 4) automatically rotating backups. (0 Replies)
Discussion started by: proactiveaditya
0 Replies
2. Shell Programming and Scripting
hello,
i need to modified my synch/back scripts....
i want that this script only syncro folders in destinationfolder.
f.e. when in destination are two folders
1) admin
2) users
but in SOURCE are three:
1) admin
2) users
3) antivirus
the script should only increnmential sync the... (0 Replies)
Discussion started by: onkeldave
0 Replies
3. Cybersecurity
I've got a new MythTV box at home and figured it would be a great opportunity to use it to do daily mirrors of my mysqlbackup directory (let's say /mysqlbackup/backups) and my website at /usr/local/apache/htdocs and below.
I figured it would be a best practice NOT to use a root login but to... (0 Replies)
Discussion started by: dheian
0 Replies
4. Shell Programming and Scripting
How do i use Rsync yo pickup only new or modified files from source?
I am using rsync -ravzpotu --delete-excluded but sometimes it goes thru all files again (5 Replies)
Discussion started by: sprool
5 Replies
5. UNIX Desktop Questions & Answers
I'm using this script to backup an external hdd to another external hdd -
rsync -aE --delete --exclude Volumes/Disk\ A/.Trashes "/Volumes/Disk A" "/Volumes/Disk A Backup"The source drive being "Disk A", and the drive I wish to backup to being "Disk A Backup".
I'm constantly getting this error,... (4 Replies)
Discussion started by: Orbient
4 Replies
6. Shell Programming and Scripting
Hi,
Do we have any options in rsync to recover files from the backup?
Please share your thoughts.
Thanks in advance. (0 Replies)
Discussion started by: MVEERA
0 Replies
7. Shell Programming and Scripting
Hi Everyone,
we are running rsync with --backup mode, Are there any rsync options to remove backup folders on successful deployment?
Thanks in adv. (0 Replies)
Discussion started by: MVEERA
0 Replies
8. Shell Programming and Scripting
Hello everybody
I'm triing since few days to do this. So sorry if my question looks stupide, but i've tried.
I have to get picture from a folder (who is updated automaticly and with subfolder) with theirs extensions (i'm ok on that) and this files have to me copied in a folder where a website... (7 Replies)
Discussion started by: boytruc
7 Replies
9. AIX
Hi,
I am trying to use rsync utility through ssh to synchronize some root files of 2 servers.
I have a rsyncusr user in each server. I configured ssh with no password. I set NOPASSWD in the /etc/sudoers file:
rsyncusr ALL= NOPASSWD:/usr/bin/rsync
In order to make rsync able to sudo and be... (2 Replies)
Discussion started by: samalogo
2 Replies
10. UNIX for Dummies Questions & Answers
Hello All,
I am looking at a fast way to script some backups. I am looking at using rsync to do the leg work. I am having a hard time conceiving a script though.
I have a tree with subfolders within subfolders. I was looking at the /xd option to parse the tree.
Directory of k:\
... (4 Replies)
Discussion started by: jvamos
4 Replies
LEARN ABOUT DEBIAN
lsyncd
LSYNCD(1) Lsyncd LSYNCD(1)
NAME
lsyncd - a daemon to continuously synchronize directory trees
SYNOPSIS
config file
*lsyncd* [OPTIONS] CONFIG-FILE
default rsync behaviour
*lsyncd* [OPTIONS] -rsync SOURCEDIR TARGET ...
default rync+ssh bevahiour (moves and deletes through ssh)
*lsyncd* [OPTIONS] -rsyncssh SOURCEDIR TARGETHOST TARGETDIR ...
default direct bevahiour (local file operations/rsync)
*lsyncd* [OPTIONS] -direct SOURCEDIR TARGETDIR ...
DESCRIPTION
Lsyncd(1) watches local directory trees through an event monitor interface (inotify, fsevents). It aggregates and combines events for a few
seconds and then spawns one or more processes to synchronize the changes. By default this is rsync(1). Lsyncd is thus a light-weight
asynchronous live mirror solution that is comparatively easy to install not requiring new filesystems or blockdevices and does not hamper
local filesystem performance.
Rsync+ssh is an advanced action configuration that uses a SSH(1) to act file and directory moves directly on the target instead of
retransmitting the move destination over the wire.
Fine-grained customization can be achieved through the CONFIG-FILE. Custom action configs can even be written from scratch in cascading
layers ranging from shell scripts to code written in the LUA(1) language. This way simplicity can be balanced with powerfulness. See the
online manual for details on the CONFIG-FILE http://code.google.com/p/lsyncd/wiki/Lsyncd20Manual
Note that under normal configuration Lsyncd will delete pre-existing files in the target directories that are not present in the respective
source directory.
OPTIONS
-delay SECS
Overrides the default delay times.
-help
Show a help message.
-insist
Continues startup even if a startup rsync cannot connect.
-log LEVEL
Controls which kind of events are logged. By default Lsyncd logs Normal and Error Messages. -log scarce will make Lsyncd log Error
messages only. -log all will log all debug messages.
-log Category
Turns on a specific debug message. E.g. -log Exec will log all processes as they are spawned.
-nodaemon
Lsyncd will not detach from the invoker and log as well to stdout/err.
-pidfile FILE
Lsyncd will write its process ID in FILE.
-runner FILE
Makes the Lsyncd core load the part of Lsyncd written in Lua from FILE.
-version
Writes version information and exits.
EXIT STATUS
0
Terminated on a TERM signal(7)
-1
Failure (syntax, unrecoverable error condition, internal failure)
SEE ALSO
Online Manual: http://code.google.com/p/lsyncd/wiki/Lsyncd2
VERSION
This man page is for lsyncd(1) version 2.0.5
AUTHOR
Axel Kittenberger, <axkibe@gmail.com> 2010-2011
COPYING
Copyright (C) 2010-2011 Axel Kittenberger. Free use of this software is granted under the terms of the GNU General Public License (GPL)
version 2, or any later version. Free redistrubition of this Documentation (/doc directory) is granted under the terms of the Creative
Commons 3.0 Attribution License (CC-3.0-BY).
Lsyncd 2.0.6 August 2011 LSYNCD(1)