Displaying 20 results from an estimated 62 matches for "backupdir".
2016 Feb 04
2
Is there a parameter in rsync to clean $BACKUPDIR before writing to it (--backup-dir=$BACKUPDIR)?
Hi,
I am runing rsync --backup --backup-dir=$BACKUPDIR where the
BACKUPDIR=$(date +%d) to recycle the $BACKUPDIR in a month. But rsync does
not clean the $BACKUPDIR before writing to it in cycling.
I guess you have to clean it manually before the rsync can write to it. As
my $BACKUPDIR is in remote machine, do you have to run ssh to delete it
first b...
2016 Feb 04
1
Is there a parameter in rsync to clean $BACKUPDIR before writing to it (--backup-dir=$BACKUPDIR)?
...ou 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 in a month. But
> > rsync does not clean the $BACKUPDIR before writing to it in
> > cycling.
> >
> > I guess you have to clean it manually before the rsync can write to
> > it. As my $BACKUPDIR is in...
2016 Feb 04
0
Is there a parameter in rsync to clean $BACKUPDIR before writing to it (--backup-dir=$BACKUPDIR)?
...SAGE-----
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 in a month. But
> rsync does not clean the $BACKUPDIR before writing to it in
> cycling.
>
> I guess you have to clean it manually before the rsync can write to
> it. As my $BACKUPDIR is in remote machine, do you have...
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 director...
2008 Jun 23
1
fully-qualified symlinks & --exclude question
...lar 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, server1:/var/lib/bar/ contains hundreds of files which are each
symlink'd to one of a few files in the same directory:
/var/lib/bar/base_file1
/var/lib/bar/base_file2
/var/lib/bar/base_file3
/var/lib/bar/foo -> /var/lib/bar/base_file1
/var/lib/bar/bar -> /var/lib/bar/b...
2004 Sep 23
1
rsync script from homepage: trouble
...ne per line.
# An example of a EXCLUDE_FILE would be:# /proc/
# /tmp/
# /mnt/
# *.SOME_KIND_OF_FILE
EXCLUDES=$HOME/cron/excludes
# the name of the backup machine
BSERVER=user@BACKUPSERVER
ssh-add ~/.ssh/root\@SERVER_backup
########################################################################
BACKUPDIR=`date +%A`
#OPTS="-e ssh --force --ignore-errors --delete-excluded
#--exclude-from=$EXCLUDES# --delete --backup
#--backup-dir=/$BACKUPDIR -a"
OPTS="-e ssh --force --ignore-errors --delete --backup \
--backup-dir=/home/$BACKUPDIR -a"
export PATH=$PATH:/bin:/usr/bin:/usr/lo...
2015 Mar 11
2
Users and groups named in Russian disappeared after upgrade samba4 PDC
Thanks for the answer.
> Did you got errors during the classicupgrade?
I didn't do classicupgrade. My Samba AD DC was installed from scratch some
months ago using the instructions from this page
https://wiki.samba.org/index.php/Samba_AD_DC_HOWTO and everything had been
working well. I just upgraded some deb-packages with samba to the same version
but different buid-release. Regarding
2010 Mar 15
2
cwrsync and link-dest option
...ntu 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 192.168.x.y::data $BACKUPDIR/weekly.0
And every day like that:
rsync -v -a --link-dest=$BACKUPDIR/weekly.0 192.168.x.y::data
$BACKUPDIR/daily.0
In the backups of the Ubuntu host, I can see that the Inode number of
the same file in weekly.0 and daily.0 is the same (ls -l...
2009 Apr 09
3
Help creating incremental backups using --backup-dir.
...he directory
with the name of the current week day is created but everything just
goes into current. and stays there. Can someone post an example that
does work for what I'm trying to do? Below is the script I'm using.
#-------------------
# directory to backup
BDIR=$HOME/Documents
BACKUPDIR=`date +%A`
OPTS=" -aX --force --progress --ignore-errors --delete --backup --
backup-dir=/$BACKUPDIR"
# the following line clears the last weeks incremental directory
[ -d $HOME/emptydir ] || mkdir $HOME/emptydir
/usr/local/bin/rsync3.0.5 --delete -a $HOME/emptydir/ /Volumes/SAMBA/
$BA...
2005 Apr 12
1
Question on using smbmount
...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 im correct, im specifying valhalla (server #2) and backupdir (which
is the share i created and specified inside smb.conf.
Once I do that, enter the password, I get the error:
Apr 12 13:41:16 valhalla smbd[32354]: sambaserver (192.168.1.51)
couldn't find service ba...
2003 Apr 23
1
trying to get incremental backups working
...l 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 pull the values for them from a
conf file that others will edit through a web interface.
BACKUPDIR=`date +%A`
BACKUPHOST=wally
REMOTEUSER=root
ARCHBASE=/home/catbertbackup/backuparchive/
CURRENT=current
INCLUDEFILE=/usr/local/etc/backup2/include
EXCLUDEFILE=
rsync --delete --backup --backup-dir=$ARCHBASE$BACKUPDIR -ae ssh
/usr/local/etc $REMOTEUSER@$BACKUPHOST:$ARCHBASE$CURRENT
rsync --delete --...
2002 Nov 13
2
--delete-excluded not working on local rsync
...#39;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*" / /backupdir/
Thanks,
Jon Gabrielson
2009 Jun 12
1
--compare-dest= dir list ?
...list. If a have
only one dir it's ok, but if I have 2 or more dir I have an error ?
Here is my script:
#!/bin/bash
SSH_USER=
SSH_HOST=
TOBCK=/
EXCLUDES=/root/bckscript/ns200176/excludes
LOG=/root/bckscript/ns200176/rsync_$(date +'%Y-%m-%d_%H.%M.S').log
mount /dev/sda1 /mnt/bckhd01
BACKUPDIR=/mnt/bckhd01/ns200176/$(date +'%A')
COMPAREDIR=""
LIST=$(ls /mnt/bckhd01/ns200176/)
for i in $LIST; do
COMPAREDIR="$COMPAREDIR/mnt/bckhd01/ns200176.ovh.net/$i "
done
OPTS="--verbose --progress --archive --hard-links --ignore-errors
--delete-excluded --excl...
2013 Feb 27
3
an rsync question
...- 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 copy or two).
So:
backupdir
\ whatsit.20130101 (backup of whatsit.img)
whatsit.current -> whatsit.20130101
whatsit.20121201
After script w/ rsync
backupdir
\ whatsit.20130201 (backup of whatsit.img)
whatsit.current -> whatsit.20130201
whatsit.20130101
mark
2014 Nov 22
1
rsync not transferring files
...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 args: --server --sender -vvlogDtprze.iLs . backupdir/
Welcome to the servername rsync server.
You may download the distribution by using the appropriate module name.
For example:
rsync -avz -P --stats --delete us...
2008 Aug 20
3
How to escape spaces in rsync source and destination paths
...anyone suggest a different approach, other than renaming all my paths to
eliminate spaces, which is the direction I seem to be heading :-)
--------------------------------------------------------
DIRS="admin@192.168.100.47:/Volumes/Christine/Complete_Rug_Image_Archive/Lay
ered\ Rooms/"
BACKUPDIR="/Volumes/Paris/Complete_Rug_Image_Archive/Layered\ Rooms/"
COMMAND="sudo /usr/local/bin/rsync $OPTS $EXCLUDES $DIRS $BACKUPDIR"
result:
Unexpected local arg: Rooms/
If arg is a remote file/dir, prefix it with a colon (:).
rsync error: syntax or usage error (code 1) at main....
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 –avz test.txt
system2::home/” , it gave me the following:
“system2 connection refused.
Rsync: connection unexpectedly closed.
Rsync error: error in protocol dat...
2004 Jul 01
0
filesystem is full ??
Hi All,
I try to test rsync on my notebook with Freebsd 5.2
I mount a dir to a win2000 hd with 80 gb free space as the BACKUPDIR
after I run a script there are 3 files named
dev-ad0s1a.0.200406290920.dump.gz
dev-ad0s1e.0.200406290920.dump.gz
dev-ad0s1g.0.200406290920.dump.gz
end up with filesystem is full..
df show me enough space on local disc
if I run the script again I get the error after 1-2 minute
can anyone hel...
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 check in .kde/share/ (backup) i found
nothing....
my backup s...
2004 May 03
1
(fwd from psdasilva@esoterica.pt) rsync: Request for a feature
...uncompressed.
Files with known extensions (.gz, .zip, ...) should not be
compressed/uncompressed.
All files must keep the original names unchanged.
Ex.
export RSYNC_COMPRESSED_EXTS=".gz .zip ..." ;# Extensions from files
not to be compressed
Backup:
rsync -av --delete --zip MyDir/ BackupDir
Restore:
rsync -av --delete --unzip BackupDir/ MyDir
This is only a sugestion. You may find a better solution.
Thank you.
Paulo da Silva
----- End forwarded message -----
--
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: applic...