Ubuntu :: No Copying Done Using Grsync Or Rsync
May 18, 2011
I'm using Ubuntu 10.10 64-bit and I'm a fairly new linux user. I've been trying to set up Grsync to to make incremental backups to my external harddrive but have some problems. In the file lists it looks like files are actually being copied but when I look at the harddrive none of the new files are actually there. As far as I can understand I'm not making a dry-run. I also found this thread: [URL] And I tried using the commands suggested in that post, with the same results.
View 9 Replies
ADVERTISEMENT
Jun 14, 2011
I'm running Fedora 15 with current updates and kernel. I do not have anything special or non-standard about my configuration or setup. I use grsync to sync my home folder files to a remote rsync server on my network. I've checked my hard drives and my memory and everything else I can think. Here is the problem:
grsync will run for some time and once it nears completion it will crash. This, however, is no standard crash. It literally shuts my computer "OFF". I have shared the remote rsync folder through CIFS as well and I can copy those exact same files through nautilus with drag and drop without issue. I have had a few occasions where the rsync process will complete without issue, but this is a rare occasion. Since it powers my computer completely off I do not enjoy the luxury of having any log files or messages to attempt to diagnose from.
View 9 Replies
View Related
Sep 27, 2010
I am running version 5.5. I am using Grsync to back up 2 folders to an USB external 1.5 terabyte drive. Sometimes grsync backs the folders up correctly but most of the time, I need to unmount and then mount the drive to get it to work.
View 5 Replies
View Related
May 26, 2011
I've been using grsync to backup my home directory to an external drive (connected via USB), but lately I've been getting errors very early in the process and I was hoping someone might be able to help me fix them (or at least understand what I'm doing wrong).
Here's the output of a window titled "rsync: stopped" and in red "completed with errors!"
rsync: write failed on "/media/LaCie/myhomefolder/.cache/champlain/osm-mapnik/6/12/23.png": Input/output error (5)
kyconway/.cache/champlain/osm-mapnik/6/12/26.png
rsync error: error in file IO (code 11) at receiver.c(322) [receiver=3.0.8]
rsync: connection unexpectedly closed (486 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(601) [sender=3.0.8]
Rsync process exit status: 12
View 4 Replies
View Related
Sep 19, 2010
I'm trying to sync a folder between my Windows install and my PCLinux install. Same machine, Windows 7 on the C drive and Linux on an external USB hard drive.
Using the Grsync GUI, I searched for the source and destination folders, and then executed the command. Here is the output:
** Launching RSYNC command (simulation mode): pkexec rsync -r -n -t -v --progress -s /media/Win7/Documents and Settings/Paul/Application Data/The Word file:///root/.wine/drive_c/Program Files/The Word/myData
ssh: connect to host file port 22: No route to host
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(601) [sender=3.0.7]
Rsync process exit status: 255
It seems to be doing an FTP operation, whereas all I need is a file transfer. Can anyone point out my error here?
View 5 Replies
View Related
Sep 9, 2011
My Source folder contains 424.8 GB in 502,474 files. My Destination folder was created fresh, and after the copy contains 394.0 GB in 486.514 files. I am running it as grsync with root authority. The only options are to preserve time, permissions, owner and group., and to produce a verose output and transfer progress. There are no exceptions specified to skip any files.
The rsync command is this:
rsync -r -t -p -o -g -v --progress -c -l -H -D -s /mnt/Backups/monthly.3/ /mnt/EX-Fantom/monthly.3/
I have run it again to give it a chance to get it right. Same result. The source is in an rsnapshot folder, but this is the first backup, the original, containing only whole files, not links.
View 3 Replies
View Related
Jan 11, 2011
During my backups I'm finding that rsync is copying all files, instead of just what's changed.
I'm rsyncing between 2 USB external hard drives. One hard drive is FAT32 and one is NTFS. I've examined some of the files and believe that the difference is that there's a 1-second modtime difference developing in some of the files somehow.
Here's an example. These duplicity files were synced from /media/BACKUPHD (the NTFS drive) to /media/VIDEOHD (the FAT32 drive) only a few hours ago this morning. They have not been touched or changed since then, but that 1-second difference in their time stamps has appeared:
Code:
tim@localhost:~> stat /media/BACKUPHD/backups/duplicity/duplicity-full.20110107T145955Z.vol10.difftar.gpg File: `/media/BACKUPHD/backups/duplicity/duplicity-full.20110107T145955Z.vol10.difftar.gpg'
[Code]....
View 8 Replies
View Related
Sep 1, 2009
Regularly I find myself cloning a machine using rsync. I find it understandable, reliable and fast, faster than dd, and I don't have to worry about different partition sizes etc. However, usually I partition my hard disk in a number of partitions:
Code:
/
/home
/usr
/var
When I start with a new, empty machine, I start up with a USB stick or live CD, and my new, empty hard disk becomes /dev/sdb. After creating the 4 partitions I have /dev/sdb1, /dev/sdb2... etc. My root directory is on the disk I used for booting, usually /dev/sda. So, in order to access my newly created partitions, I mount them on the /mnt/directory of my root:
Code:
mounted now later
/mnt/sdb1 /
/mnt/sdb2 /home
/mnt/sdb3 /usr
/mnt/sdb4 /var
In other words, I mount now /dev/sdb1 on /mnt/sdb1, while after copying /dev/sdb1 will become my root directory, /dev/sdb2 become my /home directory, etc. When I start the resync process to copy the image from a remote machine, I have to copy all 4 partitions separately. First the root directory, excluding /home, /usr, /var, then /home, then /usr, /var, like this:
Code:
action 1:
rsync --exclude='/home' --exclude='/var' --exclude='/usr' my.remote.machine:/ /dev/sdb1/
action 2:
rsync my.remote.machine:/home /dev/sdb2/
action 3:
rsync my.remote.machine:/usr /dev/sdb3/
action 4:
rsync my.remote.machine:/var /dev/sdb4/
That is a lot of typing and waiting. Sometimes I have a different partition scheme so it is not really feasible to write a script to use always. Now the Question: is there a smarter way of mounting the newly formatted disk (/dev/sdb1, /dev/sdb2... etc) in my root tree so I can perform the rsync copy in just one time, without all the excludes, but assuring that the correct source partitions end up on the correct destination partitions?
View 8 Replies
View Related
Sep 8, 2010
I've got a little rsync challange for myself, I've got lets say 800GB of data, I'm trying to get it to a mate's PC, and need to be able to copy it in 200GB chunks.What I was thinking is.... I should be able to get Rsync to keep copying until it fills the drive, and output which files it syncs. Then use that list as an exclude list the next time... Providing my directory structure doesn't change, this should work.BUT!!! How do I get rsync to do this? I know of the --include and --exclude options, but am not sure how to use them in this case.
View 3 Replies
View Related
Nov 30, 2010
I have a home network that includes a couple of computers {A, B, C, D}. currently, I have a cron jon that runs every minute and updates (using rsync) the hard drives of computers {B, C, D} with the contents of hard drive {A}. So far everything works great, as hard drive {A} barely has any information on it. Now, I am about to copy a lot of information (about 8 GBs) to hard drive {A}. Naturally, the cron job will run (as it runs every 1-min) and try to 'sync' the contents with hard drives {B, C, D}.
Given my network (100Mbit/sec), there is no way the cron job will be able to 'copy' the contents to hard drives {B, C, D} in one minute. It will take much more time. Does this situation create a problem? meaning, will cron re-run a new rsync instance 1min later, even though an existing rsync process is running and still copying information to hard drives {B,C,D}? Will my backups be hurt / slowed down tremendously because of this?
View 2 Replies
View Related
Mar 12, 2011
I would like to setup grsync to auto backup me xp desktop and win7 laptop.I have setup samba and can access the directories on the ubuntu server.I can see the desktop and laptop on the network from the server.But when I try to find the machines i want to backup in source in grsync they are not there.What should the permissions be on the windows machines?
View 3 Replies
View Related
Sep 13, 2010
I am still struggling with implementing my exclusions, from this thread:url
Backups via Grsync are OK, but I want to exclude a bunch of hopefully-useless stuff, like thumbnails, trash, cache etc.
It looks easy here:
url(last post)
url
So I had a first attempt, to exclude the ".thumbnails" folder.I created a text file "exclusions" in "/home/me/.grsync".In that file, I wrote "-.thumbnails/".In Grsync Advanced Options, I wrote "--exclude-from=/home/me/.grsync/exclusions".Simulation results showed no red errors but no good results.Execution showed the .thumbnails folder still present.
I tried manually deleting the .thumbnails folder from the backup & rerunning Grsync, but it puts all the thumbnails back.
I changed the "exclusions" file to say just "-.thumbnails" (I really am not familiar with CLI syntax) but that does not work either.
View 7 Replies
View Related
Jul 19, 2010
I'm trying to backup a whole startup disk to another with GRSYNC but I don't need some files or directories. For example, I don't want to backup my 'swapfile1' (I do not have a dedicated swap partition) or the 'media' directory' in order to no enter a looping sync.I've searched the web for the correct syntax of the --exclude command but none have worked if applied in the advanced option "before" rsync starts. These a sample of NOT workin syntaxes:
exclude /media or -- exclude 'media' or -- exclude "media"
same for swapfile1:
exclude swapfile1 or -- exclude 'swapfile1' or -- exclude "swapfile1"
View 7 Replies
View Related
Nov 17, 2010
Thought I'd post it here because it's more server related than desktop... I have a script that does:
[Code]....
This is used to sync my local development snapshot with the live web server. There has to be a more compact way of doing this? Can I combine some of the rsyncs? Can I make the rsync set or keep the user and group affiliations? Can I exclude .* yet include .htaccess?
View 6 Replies
View Related
Jan 7, 2011
When I run rsync --recursive --times --perms --links --delete --exclude-from='Documents/exclude.txt' ./ /media/myusb/
where Documents/exclude.txt is
- /Downloads/
- /Desktop/books/
the files in those directories are still copied onto my USB.
And...
I used fetchmail to download all my gmail emails. When I run rsync -ar --exclude-from='/home/xtheunknown0/Documents/exclude.txt' ./ /media/myusb/ I get the first image at url.
View 9 Replies
View Related
Apr 12, 2011
I have a tiny shell script to rsync files between two servers and remove the source files.
This script works fine, when it has been initiated manually or even when the rsync command is executed on the command line.
But the same script doesn't work, when I try to automate it through crontab.
I am using 'abc' user to execute this rsync, instead of root, as root login to servers are restricted in all of our servers, by us.
As I mentioned earlier, manual execution works like charm!
When this rsync.sh is initiated through crontab, it runs the first command(chown abc.abc ...) perfectly without any issues. But the second line is not at all executed, and there is no log entry i can find at /mnt/xyz/folder/rsync.log.
View 6 Replies
View Related
Sep 18, 2009
I just tried to sync files from one server to another. After the sync process, I found the files are bigger than original ones.
I looked up the web and found someone mentions the rsync daemon. So I have to run the daemon on one server before I run the rsync?
The command I used is rsync --partial --progress -r source destination
View 1 Replies
View Related
Jul 21, 2010
use rsync to cp such files and dirs under /var/www/html/mydir directory but these two files(/dir4/1.html /dir4/2.html) cant rsync to dest mechine.
rsync configure file,below...
View 2 Replies
View Related
Dec 8, 2010
I'm using Ubuntu 10.04 LTS server and Postgresql 8.4. I have a .sh script that is run by cron every other hour. That works fine. The .sh script includes an rsync command that copies a postgresql dump .tar file to a remote archive location via ssh. That fails when run by cron; I think because it is (quietly) asking for the remote user's password (and not getting it). I set up the public/private ssh key arrangement. The script succeeds when run manually as the same user that the cron job uses, and does not ask for the password. I am able to ssh to the remote server from the source server (using the same username) and not get the password prompt (both directions), so why doesn't rsync work? I even put a .pgpass file in the root of that user's directory with that user's password, and the user/password are identical on both servers.
I think the problem is rsync is not able to use the ssh key correctly. I tried adding this to my script but it didn't help.
Code:
Here is the rsync command embedding in the .sh script.
Code:
Here is the cron entry:
Code:
View 6 Replies
View Related
Sep 1, 2011
I'm using Grsync and I want to be able to plug in any drive into my laptop and run rsync on it to back up all the user documents on there to another external hdd and to exclude everything else. Working on the principle that user documents don't always appear where we'd expect I want rsync to look through the whole drive and filter what it backs up by file type. I am only having partial success, however.
I am using the 'filter' option in the 'additional options' box. I am using the command
Code:
filter='merge /home/tim/Desktop/filter'
and I am attaching the filter file I have written. (I have added the .txt extention to upload it).
I have tested this script on my home folder and here's what's going wrong. Rsync will copy the entire directory structure regardless of whether there are any files to be copied over in those directories. I am also getting only some file types getting included and not others. .odt and .ods files are copied, for instance, but not .doc or .rtf.
View 3 Replies
View Related
May 5, 2011
I am running Ubuntu 9.10 from Live CD and after trying Windows 8 beta I am trying to restore my computer...
I have one drive with 3 partitions.. First is extended with one Ext4 formatted logical partition 107MB, second is my Windows NTFS partition 239GB and last is my B|T 4 installation 11GB formatted as ext4...
I am trying to copy files inside the second partition, 30,4GB files(26280) and it stops after 20,8GB.. I have tried two times already.. I am trying to copy from Windows.old to root folder of the partition...
Screenshot in attachments.
get my Windows back up and have failed -.-
View 1 Replies
View Related
Jun 30, 2011
I want to copy the contents of a directory through ssh. The problem I'm having is that I can use the cp -r terminal function, but that would cause the directory itself to also be copied. I just simply want whats inside to be copied to another directory. Because of the way I have my server laid out, I would have to copy the entire directory, then copy each element one by one inside that directory into the specified folder. This is really tedious. So, is there a way I can just copy its contents? I was thinking of zipping it, the unzipping it, but when you extract, it once again just creates a new directory, not the contents inside.
If this is confusing, this is what I'm trying to do:
Directory: ../random/
Currently after scp -r:
[code]...
View 9 Replies
View Related
Jan 19, 2010
I need to copy some files from an OpenBSD 4.5 server to my Ubuntu set up via flash disk tell me what commands to enter on each in order to do this please? I believe OpenBSD is UFS and I'm running 9.10 so Ubuntu is ext4
View 9 Replies
View Related
Feb 3, 2010
When copying files to USB storage of any sort, Nautilus has started hanging after a few files (varies from 1-200 files and a few MB to over 5GB on various occasions), failing to unmount the device, and eventually throwing up an I/O error and freezing.
If I kill/restart Nautilus and reconnect the device it can still be read but comes up as read-only. I can't copy files to the device again, and attempts to erase and reformat it fail in both Ubuntu and Vista. Oddly enough XP will reformat the device, after which it works properly again.
Please help! I could deal when it happened to my USB key but I just bollocked my mate's portable drive and he's a bit pissed off Seems to be happening on all my USB ports.
View 7 Replies
View Related
Feb 18, 2010
I need to copy certain folder in /usr/src/linux-heasders/drivers/staging directory.
Attempts made are:
1.cp command:
with and without -t option.
output:
Quote:
file omitted
2chmod a+wx directory name
Quote:
output: Permission denied.
3.sudo cp source destination
Quote:
output:file omitted.
View 1 Replies
View Related
Mar 5, 2010
Suppose that I have this text :
1 abc
2 def
3 ghi
4 klm
Now I want to copy(yank) only the parts:
ab from line one and hi from line three at the same time
So how can this be done with vim? I know how to copy one line and one part of a line. What I want to do is to copy two parts from 2 different lines at the same time and paste them as they are some where else in the file.
View 4 Replies
View Related
Apr 5, 2010
I need to copy an image from a pdf file to a open office word document. I click save picture or copy picture, and in both ways, the picture ends up a black square when opened or pasted.
View 4 Replies
View Related
Apr 6, 2010
I am trying to copy files across a network using terminal. i know this is possible but i can't find a way. but i can paste smb://xxx.xxx.xxx.xxx/myfolder in the address bar in a folder and navigate to the correct area.is there some other way i can do this?
View 8 Replies
View Related
May 22, 2010
I accidentally wiped my 120GB external hardrive clean ( it was at about 95% capacity ) and I was able to recover 111.80GB back using ddrescue and all of those files now sit in a Recovery.img file.
1 ) I know I have to mount this file... yet every time I try to mount it back on my external HD permissions jump down my neck, and to add to it when I try to give my user full permissions for that drive it never works and resets to how it was.
2 )I have tried copying to .img to my drive so I could jsut worry about it later and free up some local HD space yet I don't have those permissions as well...
View 9 Replies
View Related
Aug 9, 2010
I just installed a program in WINE, that put a launcher on my desktop with a nice graphic.
I've installed a Launcher in the applications menu for the new program, but I would like to have that Launcher have the same graphic as the one on my desktop.
View 2 Replies
View Related