Ubuntu :: Sync Local Folders - Not Unison Or Rsync?
Apr 14, 2011
I need a program to run on Ubuntu that must be easily set up to do a series of different cloning operations at specific times between the USB drives on a single Ubunu pc, depending on the day of the week." So on Monday folder B is forced to match folder A, Tuesday C forced to equal D ... and on Sunday a whole bunch of these clonings happen. This must all run unattended (at 2am) and be robust with no "what do you want to do next messages" or having the whole thing give up if there is a problem with one file. Though I do need a log of success or failure. Windows programs that do this stuff are FolderClone and GoodSync. I looked at Unison and Rsync and one or two others, but none appeared set up to do what I need, or to be excessively complex / general. I don't need something that can sync two copies, or over internet ....
View 5 Replies
ADVERTISEMENT
Nov 28, 2010
OK, here is the test code I am using: rsync -acrv /home/randy/Documents /media/USB2/testbackup. What should I put in the code so that when I delete something in the Documents folder, it will also be deleted in the testbackup folder when I perform a sync.
How can I have it so the code will check if USB2 is available, if it is, do the sync, if not, do nothing.
View 1 Replies
View Related
Nov 4, 2010
how do I go about using rsync or grsync to sync folders to a samba share in my storage router? the samba share ip is smb://192.168.0.1/usb1-c/ tried using grsync but it says cant find smb!
View 9 Replies
View Related
Jul 14, 2010
I have two linux box that i would like to keep in sync. I see option -avz syncs the remote with local but new local files are not pushed.
View 2 Replies
View Related
Feb 19, 2010
i set up ssh and unison on my windows machine and i am trying to do a sync on my ubuntu machine to windows. i am running into some issues.
certain paths give me the following error: Error: The path Music/Xxxx is ambiguous (i.e., the name of this path or one of its ancestors is the same, modulo capitalization, as another path in a case-sensitive filesystem, and you are synchronizing this filesystem with a case-insensitive filesystem. When i search for Xxxx on my ubuntu system i only see it in that one Music/Xxxx location.
View 1 Replies
View Related
Apr 3, 2010
My system consists of a laptop running Ubuntu 9.10, a network drive (Samba share formatted fat32 the only option) and a desktop PC running Windows XP. For several weeks have been trying to set-up Unison to synchronise files between my laptop and a network drive with only limited success. I mount the network drive locally with:
sudo mount -t cifs //netdrive/store /home/gm/NAS -o guest,rw,iocharset=utf8,file_mode=0777,dir_mode=07 77.
Then in Unison (graphical interface),
root 1 is: /home/gm/Shared_Docs
root 2 is: /home/gm/NAS/HomeBackup/Shared_Docs_Backup
After clicking the �OK� button, Unison searches for changes files and I click �Go�.
An error is then produced, a sample of which would be:
�Error in renaming /home/gm/NAS/HomeBackup/Shared_Docs_Backup/.unison.Our-inv.xlsx.f3e8034159989f9de7081f9154319a2b.unison.t mp to /home/gm/NAS/HomeBackup/Shared_Docs_Backup/Our-inv.xlsx:
Input/output error [rename(/home/gm/NAS/HomeBackup/Shared_Docs_Backup/.unison.Our-inv.xlsx.f3e8034159989f9de7081f9154319a2b.unison.t mp)]�
If all files in the destination directory (root 2) are first deleted, all files are copied correctly without errors so, I think the problem may be caused by permissions where Unison is unable to overwrite the original file. I know formatting the network drive fat32 is probably making the matter worse, unfortunately I have no alternative.
View 6 Replies
View Related
May 11, 2011
Been thinking about a new backup-strategy for my family and me. In our house is an Ubuntu Server (10.10) and NAS (Zyxel NSA210). Now I thought I'd create a Cron Tab entry on all machines which will sync specific folders automatically to either the NAS or a specific backup drive in the server. So now the question is: "How do I do that without seriously compromising each family members privacy by making their backed up files available to everyone in the house?" So in essence I'd like to sync/back up the files to a password protected share for each family member. But this process should still be done automatically every few minutes or so without them having to enter any password at all as their specific password is stored locally.
View 1 Replies
View Related
Jun 7, 2010
I'm trying to set up a synchronization with unison and iwatch to (more or less) instantly sync files upon change in a directory tree. iwatch calls unison like this:
Code:
unison /home/foo/vhosts/foo/my_vhost/bar.html ssh://server.tld//srv/www/vhostsfoo/bar.html -batch -terse -ui text -owner -group I would expect unison to sync all files between the two servers. However, that is not the case. Everything works fine as long as the files are only created/changed/whatever on the server running unison. If a file is created on the server that unison is synchronizing to, it gets deleted the next time unison is called.
For example:
Code:
on the host running unison:
$ cd /home/foo/vhosts/foo/my_vhost
$ touch foo.bar
-- sshing to remote host ---
$ ssh remote.com
[code]....
$ unison /home/foo/vhosts/foo/my_vhost/foo.bar ssh://remote.com//srv/www/vhosts/foo/foo.bar -batch -terse -ui text -owner -groupI expected that both files get synchronized - foo.bar from the unison server to remote.com and hello_world.html from remote.com to the server running unison. Instead, hello_world.html gets deleted.
I've been working a while on this and don't seem to be able to figure it out. Maybe it's only an argument to unison to rectify it but I couldn't find anything adequate in the manpage either.
View 2 Replies
View Related
May 24, 2010
I have unison running on both my laptop and desktop, both use Ubuntu 10.04 (AMD64), I have my unison script set up to copy new files, but when it have 2 files already in place I have to manually tell it how to deal with it (either copy laptop->desktop or visa-versa). I would prefer to just run unison and click go, or possibly have an icon on the desktop I can click to automatically run it. how to set it in the script file to copy the newest file over the older file, whether it be laptop -> desktop or desktop -> laptop?
I have it set up so I can do work on my desktop machine, then when I want to leave my desk to work elsewhere, I run unison on the laptop and synchronize my Firefox bookmarks, emails and schoolwork so I can continue from where I left off and when I get back I run unison again to synchronize all my changes back to the desktop.
View 2 Replies
View Related
Sep 27, 2010
What command would you use to read about the sync system call (not the sync command)? How would you read a local man page for sync that was kept in the /usr/local/share/man?
View 2 Replies
View Related
Jan 18, 2010
I want to use rsync to synchronize some folders on my LAN. I have this working with two scripts; one runs at the beginning of my work session and gets the latest directory tree from the server, and the other runs at the end of the session to put any local changes back on the server. My "get" script looks something like this:
Code:
rsync -avuzb --backup-dir=/home/user/rsync_backup_dir --delete my_server:/home/bak/common_data/ /home/user/data
This works well, and with the "b" option any file that has been deleted from the master directory tree on the server will be deleted from the local machine and moved to the local backup directory. This is a safety measure to prevent the loss of files through a mistake (on my part).
The problem is the "put" script:
Code:
rsync -avuzb --backup-dir=/home/user/rsync_backup_dir --delete /home/user/data/ my_server:/home/bak/common_data
I want to run both scripts from the local machine, but the "put" script will not save deleted files to a backup directory. I tried using a remote backup directory like "my_server:/home/user/rsync_backup_dir" but this did not work. Is there a way to backup files deleted from a remote server from an rsync script run locally?
View 5 Replies
View Related
Dec 24, 2010
I try to sync two directories using rsync.
the source is on Linux, and the other is on windows.
So, I mount the directory on windows using the command mount -t cifs . in Linux system.
Then I execute rsync ....
Everything is OK, but rsync prints out
rsync: chown "/mnt/windows/A/." failed: Permission denied (13)
rsync: chown "/mnt/windows/A/readme.txt" failed: Permission denied (13)
I want to sync the directories without changing ownership.
View 2 Replies
View Related
Jul 18, 2010
wrote a script to sync my netbook music with my server music and everything was fine.but if for some reason lets say i run it accidently and i'm not connected to my network, i just wiped my netbook music .here's what i got so far:
Code:
Sudo mkdir /media/ServerMusic/
mount -t cifs -o user=Justin,password=****** //192.168.1.108/Public-3/Music/ /media/ServerMusic/[code]....
i need to have the --delete option in rsync (say i sync it and realize i hate some music, when i delete it from the server i don't want it still on the netbook.i want an if statement in here somehow, but i'm not sure how to do it.something like, the first command in the script should be a ping test, if ping doesn't work end the script, if ping does work continue or if the server music gets mounted to the created directory continue, if the mount failed, or even in the mounted folder is empty stop the script
what can i do here to ensure i can keep the --delete and not have to worry about losing my music if the mount fails?
View 9 Replies
View Related
Jun 3, 2009
Can anybody tell me how I can synchronise files between two computers in a network that have been modified or created within the last 60 days?
View 3 Replies
View Related
Apr 4, 2010
I'm looking for a way to sync directories between two computers, in a "two-way" fashion. Basically, I have a laptop and I have a desktop, and I want to keep a particular directory synced between the two machines. The easiest thing would be to have some kind of networked filesystem, but obviously this won't work because the laptop may or may not be connected to the internet at any moment. At any time I might be editing files on the desktop or on the laptop, and when the laptop is connected to the internet, I'd like all files on both machines to be synced to their most recent versions.
I thought I could do this with rsync but now that I've looked into a bit more it seems like it works only for "one-way" syncing. In other words files are synced from a server to a client or vice versa, but not both at once. First of all, am I right about that? And second, is there a program that will do what I want to do? OK, I guess you could do it with some SVN kind of thing but that seems like overkill. I guess if there's nothing out there it shouldn't be too hard to write a script myself to do it.
View 3 Replies
View Related
Sep 2, 2010
Ever since I had a hard drive that had an unexpected mechanical failure 2 years ago (& had to pay $1400 to have the drive pulled apart in a vacuum & copied), I've been understandably paranoid about ensuring I keep multiple up-to-date copies of my hard drive.Currently, I'm running 3 computers- The TV Computer, my Wife's Computer & my Main Computer. A second hard drive in the Main Computer & an external hard drive both act solely as backups for my Home folder. The TV Computer & my Wife's Computer also keep an identical Home Folder to my Main.I have ssh installed on all computer's & have made bookmarks via the Places Menu's 'Connect to Server', so obviously it's very easy for me to exchange files between computer's...
My problem is this; Every time I save/download/change a file, I have to copy it to 4 other hard drive's. It's kind of annoying.Can anyone suggest some ways for me to save some time with this? It's a wired network with static ip's. All 3 computers are pretty much turned on 24/7.I'm open to middle-of-the-night scheduled type of thing or whatever.
View 6 Replies
View Related
Nov 5, 2010
how do I select just three folders to sync from a directory?
View 8 Replies
View Related
Feb 16, 2011
Is it possible to have all my Hotmail folders be synched with my Evolution? (by default it is only synch-ing Inbox)
I've searched these forums and seen this question raised by many but no clear answer on it yet...
View 1 Replies
View Related
May 11, 2010
I have setup a deb mirror that is syncing the Ubuntu repositories to my local server. I am maintaining various versions of Ubuntu, from Hardy through to Lucid. I am trying to get a copy of just "Karmic" repo's to my local HDD. The problem is all the packages are under one folder /pool:
main multiverse restricted universe How would I sync all the packages for just Karmic and not the other distro's to my local HDD.
View 1 Replies
View Related
Jun 2, 2010
I have a simple question: Presume I have two (or more) computers set up with Ubuntu One. I copy the exact same file manually into my Ubuntu One folder on two computers, will the U1 service realise this and not download it again? For example, I want to copy to the cloud a large file so that I can share it with others. It will upload to the server from the computer I first copy it to. Then on the second computer I copy it to the Ubuntu One folder as well, because I don't want to download it since I already have it. Will the U1 service on the second computer see the local file and skip the download?
View 3 Replies
View Related
May 31, 2010
I'm using a Linux machine at work, and started using at home in a VM for some home development. I have a vimrc and a bashrc with some configuration, that are useful for both machines. What is the best way to sync them? Create a symlink for each file in my home folder pointing out to a the respectives files in my Dropbox sync folder? Is this possible (delete .bashrc and create a symlink instead)?
View 4 Replies
View Related
Nov 22, 2010
I want to synchronize my home folder from my laptop to my desktop from the local network, but i want to transfer only the visible folders/files... So i am using the following command
Code:
rsync -v-r-e --delete ssh ~/* kokeroulis-desktop@ip_address:~/
The command is transferring the files but it doesn't remove the old folders which they doesn't exist any more.
View 4 Replies
View Related
Dec 5, 2010
I'm trying to understand how gtkpod syncs my local library with my ipod.I've got two repositories. One for my ipod, the other for my local library.what's the procedure to sync them?I know you can drag and drop folders and tracks but I suppose there's a simpler way to sync all my music just doing "something" between my two repositories.
View 2 Replies
View Related
Sep 16, 2011
I've got two primary computers, one Mac Pro and one MacBook Pro for when I'm on the go. I've also got a Linux sever which also acts as NAS. Currently I backup the entire computers to an external drive with Time Machine which is rather useless and doesn't sync anything. What I really want to do is to keep my important files synced between both computers and my NAS (which is running RAID 5), that way I'm not backing up easily replaceable systemfiles and I've got all my important files in 3 places where two of them are running raid so at least 5 drives would have to crash at the same time before actual data loss occur.
Folders I want to keep synced is basically my photo, documents, development, mamp and work folders and then I want to keep the user library folder backed up but not synced. I'm thinking that I'd have to use rsync but don't know how. Before suggesting Dropbox and similar suggestions I don't want to use them because of several reasons some of them being security (Dropbox obviously proved this), Speed (sometimes I'll sync gigabytes of data and that will be significantly faster locally and probably even through VPN as I have a Gigabit pipe), Space (space on my NAS is cheap and only practically limited by my needs), reliability (even if my internet were to go down I still need to be able to keep my files synced incase I'd need to go somewhere on the fly), price (I already have all the hardware and for the amount of gigabytes and bandwidth I'd need I doubt that there's any free or cheap service). Those are my main reason for wanting to keep it locally.
View 2 Replies
View Related
Jun 15, 2011
I am trying to create a simple bash script to rsync some folders within a directory stucture. I am using wild cards, in the rsync source directory structure, but my command always fails. I believe it is the way I am using wild cards within my for loop. Here is my command ;
Code:
for seq in `cat test.txt` ; do rsync -nvP /folder/folder/folder/folder/folder/**/$seq /folder/folder/folder/ ; done This always fails, where if I do a ls to the destination, to test the path, it always works.
View 5 Replies
View Related
Sep 22, 2010
I'm trying to rsync a folder(and all subfolders) down to a local directory, upon completion I'd like the remote folder to be deleted.
What I've come up with is
Code:
rsync -rvtW --remove-sent-files -e ssh user@example.com:/remote/folder /local/folder
What this is doing is simply wiping the remote files within folders(not the folders themselves) and not actually syncing anything down to my local folder(as in no files at all on my /local/folder)
View 1 Replies
View Related
Oct 14, 2010
I went ahead and created this directory
mkdir /tmp/rsync-backup
and, ran this
rsync av /home /tmp/rsync-backup
this is the result
rsync: link_stat "/av" failed: No such file or directory (2)
skipping directory home
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1060) [sender=3.0.7]
View 5 Replies
View Related
Mar 29, 2010
I've got a hybrid network of Windoz and Mac clients that I want to auth to a CentOS Samba server (currently running a tdbsam backend but will eventually be migrated to an OpenLDAP backend)...what is the best solution for "sync'ing" the Mac clients (mostly laptops) to the server, all the solutions that I've seen suggest that I should simply map the users home drive to the PDC but that doesn't mac much since to me seeing as they need to access their computers data while they're off site...is there a way to "sync" user profiles in Linux>?
View 1 Replies
View Related
Feb 26, 2011
What would be the easiest way to synchronize a local folder of images, recursively through sub-folders, with a remote folder of images over FTP?
View 7 Replies
View Related
Mar 29, 2010
I've got a hybrid network of Windoz and Mac clients that I want to auth to a CentOS Samba server (currently running a tdbsam backend but will eventually be migrated to an OpenLDAP backend)...what is the best solution for "sync'ing" the Mac clients (mostly laptops) to the server, all the solutions that I've seen suggest that I should simply map the users home drive to the PDC but that doesn't mac much since to me seeing as they need to access their computers data while they're off site...is there a way to "sync" user profiles in Linux>?
View 1 Replies
View Related