I run the following rsync command to back up my data.
When I use rsync to backup something to an usb stick (formatted with an ext4 filesystem), rsync seems to preserve only the owner and group of the files but changes everything for directories to root and changes all permissions for directorys to drwx------ (permissions of files are preserved).
The exact command I used was:
sudo rsync -a /home/myuser/mydir/ /media/usb/backup/
Why are the director
If I try the sudo mv command on the file listed below I get the error listed. I am confused. It is my file & I have permissions
Somehow a slew of files on my system are now showing this way.
This seems to correspond when I ran rsync from my netbook to sync it up with my desktop where I am having a problem.
Any ideas ? :doh:
I am backing up a networked server via SSH. Unfortunately, I can't seem to figure out how to get root access to the networked server with Rsync. I am using the following command to perform the backup:
sudo rsync -av ubuntu@*******:/ /media/backup1/ubuntubackup
Some directories come up as permission denied.
Hey guys.
I have a rsync command as follows in a expect script
Code:
spawn rsync -a -r -z -v -h -p -i --log-file=/path/rsync.log --progress --delete-excluded -e ssh user@ip:/source /destination
My question is.
When rsync has downloaded a file or folder, how can i get rsync to touch the file / folder with a date and timestamp for when the download was completed on the destination?
Thanks on
ive set up passwordless ssh by running ssh-keygen , then swapped keys using ssh-copy-id . i can login without being asked for a password if i just type in ssh user@remote.com , but when running this rsync command i get prompted for a password on the remote machine. im transferring data from a remote machine to a local computer, and im running rsync from the local machine.
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.
Local Backup
Code:
sudo rsync -azvv /home/path/folder1/ /home/path/folder2
Backup Over Network
Code:
sudo rsync --dry-run --delete -azvv -e ssh /home/path/folder1/ remoteuser@remotehost.remotedomain:/home/path/folder2
^^^
This is quoted from: https://help.ubuntu.com/community/rsync
I know sudo isn't needed for a local backup but I don't know about "backup over network".
Hi all,
I'm trying to back up a remote server with RSync script:
Code:
#!/bin/bash
## my own rsync-based snapshot-style backup procedure
# config vars
SRC="goupsmar@go-upsmart.com:~/public_html/" #dont forget trailing slash!
SNAP="/media/Backups/UpSmart"
OPTS="-e ssh -rltgoi --delay-updates --delete --chmod=a-w"
MINCHANGES=20
# run this proce