In order to create regular backups, I'm using rsync together with --link-dest so as to create hard-links for unchanged files.
Good day
I use this script to backup my home PC to remote PC
#!/bin/bash
#Todays date in ISO-8601 format:
DAY0=`date -I`
#Yesterdays date in ISO-8601 format:
DAY1=`date -I -d "1 day ago"`
#The source directory:
SRC="/home/honza/Downloads/"
#The target directory:
TRG="honza@192.168.80.197:/media/zaloha/$DAY0"
#The link destination directory:
LNK="/media/zaloha/$DAY1"
#The rsync options:
OPT=
I have a big hierarchy of files. Sometimes hardlinks are created within that hierarchy and I know exactly in what folders that happened.
I have a problem rsyncing my folders. In my home there is folder workspace. Recently I changed its content a lot, creating new directories, deleting old ones. New folders were successfully rsynced to external disk but deleted folders are still on external disk, not deleted. Same if I rsync to my other backup network location.
I have a problem rsyncing my folders. In my home there is folder workspace. Recently I changed its content a lot, creating new directories, deleting old ones. New folders were successfully rsynced to external disk but deleted folders are still on external disk, not deleted. Same if I rsync to my other backup network location.
This is happening to me:
$ rsync -av ./foo ./bar $DEST
sending incremental file list
directory has vanished: "/path/to/foo"
foo exists and is regular a regular dir, and rsync -av ./foo $DEST works, same for bar.
Is "directory has vanished" just how rsync tells me that it doesn't know how to work with multiple sources? Or am I importantly misinterpretting the (long) man page?
I am trying to copy the files from my WHS disk to my Ubuntu Server disk. I have the windows disk mounted at /media/WINDOWS and I want to transfer to /storage so I ran;
Code:
sudo cp -r /media/WINDOWS /storage
It takes about 4-5 seconds and is complete, but there is about 500 GB worth of data there so I know it didn't really copy everything over.
I run the following rsync command to back up my data.
I have multiple source dirs, say /home/me/source1 and /mnt/somedisk/source2. I want to push them both to something like /home/someoneelse/dest1 and /home/someoneelse/dest respectively. I'd like to use one rsync command to this, is this possible?
What about for N directories to N directories where every directory is uniqe?