similar to: Is there a parameter in rsync to clean $BACKUPDIR before writing to it (--backup-dir=$BACKUPDIR)?

Displaying 20 results from an estimated 3000 matches similar to: "Is there a parameter in rsync to clean $BACKUPDIR before writing to it (--backup-dir=$BACKUPDIR)?"

2016 Feb 04
1
Is there a parameter in rsync to clean $BACKUPDIR before writing to it (--backup-dir=$BACKUPDIR)?
Hi Kevin, Thank you very much for the response. Actually, I don't think I need to clean the backup dir defined in --backup-dir=<backup dir>, when the contents has already been deleted in the destination (no exist), it will delete from the backup dir as well in next cycle, correct? Regards, - j On Thu, Feb 4, 2016 at 12:39 PM, Kevin Korb <kmk at sanitarium.net> wrote: >
2016 Feb 04
0
Is there a parameter in rsync to clean $BACKUPDIR before writing to it (--backup-dir=$BACKUPDIR)?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Obviously you can ssh an rm -rf. Alternatively, if you are in a restricted environment where you are only allowed to use rsync you can rsync --delete an empty directory to it. On 02/03/2016 08:33 PM, jupiter wrote: > Hi, > > I am runing rsync --backup --backup-dir=$BACKUPDIR where the > BACKUPDIR=$(date +%d) to recycle the $BACKUPDIR
2014 Nov 22
1
rsync not transferring files
Hi there, I am running rsync-3.0.6-12.el6.x86_64 on a centos 6.6 box. Am trying to get files from a remote server (centos 6.5) to my local machine. It appears to connect fine, but does not transfer any file. this is what I am seeing [youcantoo at testbox home]# rsync -avvvzh -P --stats --delete servername::backupdir/ /home/findmoore opening tcp connection to servername port 873 sending daemon
2016 Jun 18
2
/root is wrongly copied during update
For backuping system folders on ArchLinux I use the following command per folder: rsync --update -DHAErlptgo --relative --delete-during $dir $backupdir The problem is that every file in /root folder and its subfolders is copied each time when this command is run. In all other folders only new or modified files are copied. The files and the folder itself have the following attributes: [root at
2016 Mar 28
2
-H option causes unneccessary transfers
Greetings, when the daily system backup with rsync is performed, thousands of files (e.g. from /usr directory), which are not modified are uselessly transferrred to the backup storage every day. The rsync command is the following: rsync --update -DHAErlptgo --relative --atimes --delete-during ${SRCPATH} ${BACKUPDIR} Quick investigation shown, that these files are hard links, and the command
2016 Mar 28
2
-H option causes unneccessary transfers
On Mon, Mar 28, 2016 at 08:11:07AM -0400, Kevin Korb wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > What does --itemize-changes say about these files? > > Also, what is --atimes? Is this the Apple modified rsync for OSX? > > On 03/28/2016 07:51 AM, Albert Berger wrote: > > Greetings, > > > > when the daily system backup with rsync is
2006 Dec 06
2
May I merge several increment backups to one?
Hi all, I have the following situation: Backup /mysource to /backupdir, /backupdir/full ---------an old full backup /backupdir/back2 -------previous increment backup(based on the full backup mentioned above) /backupdir/back1 ------most recent increment backup (based on the two backups mentioned above) How can I merge the two increment backups into one directory,say
2014 Nov 24
1
rsync not transferring files
I really want to thank you for taking time to help me with this. I have changed the rsyncd.conf as per you suggestion below. I have several different systems that sync to the server and today they were showing this Number of files: 25832 Number of files transferred: 78 Total file size: 49441191919 bytes Total transferred file size: 37421120 bytes Literal data: 36955331 bytes Matched data:
2020 Sep 29
1
Back-up differences. Raspberry Pi and Fedora
I am using the 'backup to a central backup server with 7 day incremental' example to archive three separate computers to identically configured (apart from name) shares on a Western Digital 'MyBookLive' NAS which has rsync enabled. The backup from two Raspberry Pi Computers operates without a problem but the backup from a Fedora 32 computer fails with an 'unknown module
2008 Jun 23
1
fully-qualified symlinks & --exclude question
Greetings! I've ran into a couple difficulties for a particular rsync use-case I'm involved in implementing - hoping someone here might be able to clue me in! I've got an existing linux box, with a particular directory that needs to be mirrored onto another server, into a different base path on that server - i.e.: server1:/var/lib/bar/ to server2:/backupdir/var/lib/bar/ Now,
2004 Sep 23
1
rsync script from homepage: trouble
Hello, I'm new to this and am trying to modify the "backup to a central backup server with 7 day incremental" script from http://samba.anu.edu.au/rsync/examples.html to suit my situation. I have ended up with the script attached below and when running it from command line I get these errors: rsync error: syntax or usage error (code 1) at main.c(726) and a plethora of this >
2010 Mar 15
2
cwrsync and link-dest option
Hello, In a small environment I have to backup two servers, an Ubuntu 9.10 and a Windows Server 2008 machine. My Backuphost is a Ubuntu 9.10 machine as well. I installed rsync on both Ubuntu hosts from repository (3.0.6) and cwrsync from http://www.itefix.no/i2/node/10650 (3.0.7). Then I wrote some Bash-Scripts which executes rsync every week like that: BACKUPDIR=/var/backup rsync -v -a
2005 Apr 12
1
Question on using smbmount
I'm trying to mount a samba share located on one Linux server to another samba server for backup purposes. The problem im running into is that i get an error stating: couldn't find service <share I am specifying> Here is what im attempting: One server #1 sambaserver, Where I want the share to be mounted for backup purposes smbmount //valhalla/backupdir /backuparea/valhalla If
2003 Apr 23
1
trying to get incremental backups working
So I'm trying to write up a short script to do some backups over rsync. The goal is to have multiple client machines push the backups to the backup server nightly. The backup server will have a complete copy of the selected directories as well as revisions for the last 7 days. Here is the brief script I have. Btw if you're wondering about all the variables, I eventually want to set it to
2009 Apr 09
3
Help creating incremental backups using --backup-dir.
Normally I would use the --link-dest option to do this but I can't since I'm rsyncing from a Mac to a Samba share on a Linux box and hard links don't work. What I want to do is create a 10 day rotating incremental backup. I used the first script example on the rsync examples page as a template. The only thing I changed was the destination to be a local directory and paths for
2013 Feb 27
3
an rsync question
Is there any way to have rsync compare against a file with a *different* name? What I'd like to do is compare a vm - whatsit.img against a backup - whatsit.current, that's a symlink to whatsit.timestamp, and if different, *then* make the copy (which my script will then move to whatsit.newtimestamp, and change the symlink to point to the new one, then remove the old (or maybe save an older
2003 Jul 30
1
Basic doubts
Hi all, I am very new to the rsync world (as well as the linux world) and have some really basic doubts. Please bear with me. I installed RH 9 on two systems in the same network and Rsync 2.5.5 was automatically installed with it. When I executed the command “rsync –avz test.txt /backupdir/ ”, it backed up the file test.txt into backupdir/test.txt. But when I tried the command “rsync
2006 May 20
1
problem to backup some folder - folder empy
hi my script to backup my home folder BDIR=/home/$USER EXCLUDE=exclude.txt OPTS="-a -r -v -p -t --del --exclude-from=$EXCLUDE --progress" BACKUPDIR=/media/dvdrecorder rsync $OPTS $BDIR $BACKUPDIR my exclude file + .kde/ + .kde/share/ + .kde/share/apps/ + .kde/share/apps/kmail/*** + .kde/share/apps/kwallet/*** + .kde/share/apps/konqueror/*** + .kde/share/apps/kabc/*** - .** when i
2008 Aug 20
3
How to escape spaces in rsync source and destination paths
This may not be an rsync-specific question, but it is certainly stopping me from moving forward with rsync and I am sure it has a simple solution. I have written a simple shell script to rsync disks attached to a Mac OS X Server 10.4.11 Xserve box at our offices to a similar Mac OS X Server 10.4.11 setup at our colocation facility. The script runs rsync 3.0.3 on the machine at the colocation
2002 Nov 13
2
--delete-excluded not working on local rsync
I am using the following command and the excluded directory /usr/share/doc/ still appears with all it's contents in the backup directory when it's contents should be deleted. Is this a bug or am I doing something wrong? rsync --delete --delete-excluded -a -R --exclude="/proc/*" --exclude="/dev/*" --exclude="/usr/share/doc/*" --exclude="/backup*"