Ubuntu :: Unison Run From Cron Fails

Aug 26, 2010

I have unison set up (using the .unison/default.prf config file) to sync certain directories on my work computer with my home computer.

View 2 Replies


ADVERTISEMENT

General :: Cron Backup Job Fails To Run?

Jan 5, 2011

I'm having a small issue where the backup jobs that I set to run in the crontab of the backup user do not appear to be running. Here's how I set it up (with crontab -e as the backup user):

run amanda every night (check at 2:45 and backup at 3)

[code]...

View 5 Replies View Related

Software :: Cronjob And Feh / When Its Run Via Cron It Fails?

Aug 21, 2010

I wrote a small bash script to use feh to change my background every time its called. I use a cron job to have it execute every 5 minutes.

When I run the script manually it works perfectly, however for some reason when its run via cron it fails. I can see that it is executing but it seems to error for some reason.

Its kind of a drag to have a working script that when run as a cron job suddenly no longer works.

View 7 Replies View Related

Ubuntu :: Script Fails In Cron But Runs Fine In Regular Shell?

Jul 11, 2011

I have an Ubuntu server running Couch Potato, Sick Beard and Sabnzbdplus. Everything "works" pretty well in a sense that CP and SB push the NZB's to Sabnzbdplus, but Sab crashes regularly (haven't found the solution or the cause for this problem, so if you have some advice regarding that, it's welcome).To counter this problem (Sab crashing) I have a script written which checks if Sab is runnning and if it isn't start it:

Code:
bart@Pyro:~$ cat CheckSabRunning.sh
#!/bin/sh

[code]....

View 9 Replies View Related

Server :: Rsync Fails In Cron - Ssh Key - For Rsync?

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

Ubuntu Servers :: Cron Sending Email From Address / Change The Default Domain Name For Cron?

Apr 29, 2011

Can anyone tell me how i change the default domain name for cron?everything i cron runs it emails from and to user@com.com

this leaves me with a massive list of failed mails in postfix.i have mailto on my main crontab but i cant do it on all of them.

View 1 Replies View Related

Ubuntu :: Unison Sync Between OS And Windows

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

Ubuntu :: Unison Cannot Connect To SSH Server

Aug 24, 2010

There's an error when I try to connect to an SSH server with Unison.It says 'Received unexpected header from the server: expected "Unison 2.32" but received "myuser@myhostname" ...'I use Unison for Windows as client to connect to Ubuntu Unison SSH server.Of course It is connected well from localhost to localhost with SSH,but not from a client outside.

View 1 Replies View Related

Ubuntu :: Unison Hangs In The Natty?

Apr 29, 2011

Unison-gtk on a new 11.04 machine talking to a 10.10 machine hangs. It never connects to the rsync over ssh to the destination 10.10 machine.

View 9 Replies View Related

Ubuntu Networking :: Unison Not Connecting Via Ssh?

Jun 8, 2011

I'm having a little trouble getting unison to work on Kubuntu and can't figure out why.I have two machines. One is a dinky little box that I'm using for version control and as a file server. It has an IP address of 192.168.1.5. My other machine is a laptop with an ip address assigned via DHCP. I can ssh from the laptop to the dinky box with no problems. However, in unison, I've set up a profile to sync /home/will with ssh://will@192.168.1.5/WillHomeSync. However, when I try to connect, it just hangs on the "Contacting Server..." window and does nothing. How do I even go about starting to troubleshoot this?

View 1 Replies View Related

Ubuntu Installation :: Cron's /etc/cron.daily/apt Not Upgrading?

Feb 25, 2010

It seems that cron is not upgrading my Ubuntu 8.04 LTS Server, no GUI installed. I changed /etc/crontab and watched apt running:

Code:

ps -A | grep apt

showed it for a long time,

Code:

sudo tcpdump tcp

showed communication with canonical sites,

but:

Code:

top

did not show any apt using CPU

[code].....

View 2 Replies View Related

Ubuntu :: Do Cron Updates Erase Cron Entries

Sep 19, 2010

I put in my cron entries to run my backup script which rsyncs my data to my 2nd drive, however on a hunch I checked my backup drive which mounts automatically via fstab and I realize it had not ran in a while. I checked cron and there were no entries for it. I got to wondering if I should ever be worried about a cron update coming down and over-writing my existing cron file with the backup entries in it to run.

View 2 Replies View Related

Ubuntu :: Unison Sync To Fat32 Permissions?

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

Ubuntu :: Unison Vs Freefilesync Vs Dirsync Pro Vs Synkron?

Aug 15, 2011

I have a home server that houses all my files accessible over SSHFS. I am looking for a tool that can bidirectionally sync the Documents Folder on the server with the one on my netbook, so that I can keep my work-flow up to date on both regularly. (the directory in question contains mostly MSOffice files and a few PDFs. It is about 1.5GB in size, most of which never changes.

From what Ive read all the apps I mention will do the trick. Which would you recommend I use and why? Note: I am leaning towards Unison, as it seems to have good SSH support which is important (as I often have to synchronize away from my LAN). Do the other three have any speed/feature advantages which I would be missing in Unison?

View 5 Replies View Related

Ubuntu :: Unison GUI Disappears - Process Remained Running

Dec 18, 2010

I've just installed Unison. I created the default profile, selecting one of my subdirectories as the source. That done, the GUI disappeared, although a unison-2.32.52- process remained running. I can start another GUI session and, regardless of if I kill the old process, I can only choose my profile before the GUI disappears again. There is no opportunity to do anything else useful, such as selecting a destination directory.

View 5 Replies View Related

Ubuntu :: Unison - Archive Locked But No Lock File?

May 19, 2011

I use Unison to synch files between my netbook and desktop. Have done for a while without issue. I hadnt used it for a while and now, when doing so, i cannot get it to work.I get the following error message:

Code:
Looking for changes
Fatal error: Warning: the archives are locked.

[code]....

View 2 Replies View Related

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 View Related

Fedora :: No Output From Cron Jobs In /etc/cron.daily

Jan 29, 2011

I have added some executable scripts to /etc/cron.daily but don't get the stdout/stderr output from them as mail (or anywhere else I have found). At least one of them is running (because I can see that it has added a file to the disk).

The peculiar thing is that I do get the output from /etc/cron.daily/0logwatch (part of the logwatch package) as an email each day.

The MAILTO line in /etc/crontab is "MAILTO=root" (unchanged from default). Same for /etc/anacrontab.

I do have an alias at the end of /etc/aliases which redirects root's mail to my own account, but this alias works fine for mail I send manually. (It also appears to work fine for the output from the file /etc/cron.daily/0logwatch.)

View 3 Replies View Related

CentOS 5 :: Setup A Cron In /var/spool/cron/root

Feb 16, 2010

I have set up a cron in /var/spool/cron/root

*/15 * * * * /usr/bin/phplist.sh

I can see in /var/log/cron that it is running every 15 minutes but it has no effect. It is not doing the commands in the bash script.

If I run /usr/bin/phplist.sh right in the shell it works great.

View 3 Replies View Related

Ubuntu :: File-Sync With Unison To A Password-protected Share?

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

Software :: Vixie-Cron Not Running /etc/cron.d/

Feb 9, 2011

Is my vixie-cron broken? i have "0-59 * * * * root /usr/sbin/logrotate /etc/logrotate.conf" but it is not running in /etc/cron.d.

Code:

View 2 Replies View Related

OpenSUSE :: Any Good Bi-Directional Synchronization Tool (like Unison)?

Oct 25, 2010

I need a good bi-directional sync. tool like unison, that would work properly over ssh and allow manual decisions and merging if both sides (local&remote) contain changes. unison meets most of my needs, the only drawback is the compatibility - it needs to be installed on both sides, and with the same version. Nowadays it's a bit of a problem, if you have say OS11.3 on one node, SL3 on the other and a MacOS on the third. In my view one only needs the ssh connection, all the rest of the file analysis should be done by the local software. Anyone knows such a tool?

View 3 Replies View Related

General :: Cracking WEP With Aircrack And Kismet / Use It Peacefully In Unison?

Dec 25, 2010

Just a minor question, but I notice with aircrack when it lists networks, it does not list the encryption type of each network.

Which seems fair enough, as you can use Kismet, however on my machine when I end kismet and the server, the monitor interface is not removed and I cannot remove it manually, which screws with aircrack.

SO, is kismet needed to view encryption types of networks, and if so how do you use it peacefully in unison with aircrack?

View 1 Replies View Related

Fedora :: Firefox 3.5.8 Cannot Save Page / Download After Synched Using Unison

Mar 23, 2010

What follows is actually a copy of my yesterday post on users mailing list, which so far had no response at all. I hope I'll have more luck here.I have 3 PCs running Hardy, Karmic, and Fedora 12, with Firefox on each of them: v. 3.0.18 on Hardy and v. 3.5.8 on both Karmic and Fedora.I created "shared" profile on each system and synchronize them using Unison. Ubuntu 8.04 is a base system for synchronization.The synchronization itself works just fine on all 3 systems. No functionality problems on either of Ubuntu's.In Fedora however I'm having a problem. While using "shared" profile I can save neither a web page nor a download (unless I use some of add-on' as described below).

If either Save Page As... or Save Link As... menu items are selected the requests are simply ignored with no response from FF. However using Download Them All add-on does the job. Equally Scrapbook add-on allows me to save/capture pages.

The default profile works as expected. I thought SELinux is on the way but disabling it (for a test sake) did not changed things. All permissions in "shared" profile directory to me look OK.I'm new to Fedora and cannot figure it out myself, need you help, folks.

View 5 Replies View Related

Networking :: Unison/iwatch Sync - Files Disappearing From Server?

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

Software :: Make Unison Transfer Newer Files During Sync?

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

Red Hat / Fedora :: File Server In Europe Synched To Another In Asia Office Using Unison

Aug 5, 2010

I am looking to implement a file server, in a small office we have users in 3 different continents, Europe(Ireland), USA and Asia(China) with 3 main offices, 2 in Ireland and 1 in China We currently have 1 file server in Europe synched to another in Asia office using unison Our USA staff and roadwarriors connect over vpn to the fileserver in Ireland Users indicate that access the files in the fileserver from outside the office is prohibitively slow....its served by a 12Mb/2Mb broadband line, which is used for all office traffic

We have hosted servers where we could setup a file server as an alternative to setting up in the offices... Can anyone recommend a good, free/opensource

View 4 Replies View Related

Server :: E2fsck Fails - Bad Block / Inode - Fails To Transfer

Mar 29, 2010

I have a 14TB raid, file system is read-only and I am trying to run e2fsck -B -p -C -v -y /dev/sdb1, it goes through, but fails and says bad block/inode or fails to transfer, something like that.Is there a way I can get this to run successful, this is a production storage server, its critical.

View 13 Replies View Related

Ubuntu :: Unison Not Working - Uncaught Exception Gtk.Error("GtkMain.init: Initialization Failed Ml_gtk_init: Initialization Failed")

Jul 30, 2010

So I installed the Unison synch software with sudo apt-get install unison-gtk. When I set up the two directories for synchronization it looks like this: $ unison ssh:\SERVER\pathpath /var/www/path/path/path

I am getting this error in terminal Uncaught exception Gtk.Error("GtkMain.init: initialization failed ml_gtk_init: initialization failed") Fatal error: exception Util.Fatal("Error in getLogch: /home/path/.unison/unison.log: No such file or directory"

View 1 Replies View Related

Fedora Installation :: Upgrade RH9 To F10 - Install Fails - Installer Fails Media Check Due To "errors"

Jan 23, 2009

I am trying to upgrade RH9 to F10. I have downloaded dvd iso image i386. The SHA1 integrity check passes. The installer fails media check due to "errors". I did an independent verification of the DVD and zero errors found. Download was from Fedora's own torrent, so files should be verified anyway. If I bypass the media check I get the message : Running anaconda 11.4.1.62 the Fedora system installer - please wait.....

[Code]....

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved