Ubuntu Networking :: Cron Not Work When Trying To Sync With Network Drive?
Oct 25, 2010
Cron refuses to work when trying to sync with a network drive. I am trying to setup a cron job to backup a folder in my home directory ('/home/scratch') to a folder ('home/internet_backup') that is mounted (using nfs) to a network folder. The folder ('home/internet_backup') is mounted correctly to the network folder upon system startup, so this part works.
I created a simple bash file (rsync-shell.1.sh) that looks like this:
Code:
# backup the contents of 'scratch' (of 'internet' machine) into '/home/aa/internet_backup/'
# the latter folder ('/home/aa/internet_backup/') is mounted to 'developer' machine
rsync -av --exclude=".*" /home/aa/scratch /home/aa/internet_backup/
#
When manually running this bash file from my home directory (./rsync-shell.1.sh) everything works, and the contents are written to the destination folder. Yet, instead of running this manually, I wanted this to be executed by Cron every 30 min. so I first chmod +x this file, and then copied it (using sudo) to /root.
I then created the following using 'sudo crontab -e':
Code:
# m h dom mon dow command
10 * * * * /root/rsync-shell.1.sh
This is the same bash file illustrated above, yet, it doesn't work (files are not being written to the destination folder).
View 2 Replies
ADVERTISEMENT
Apr 17, 2010
I am interested and looking forward to get a smartphone or a personal data assistant with calendar/ email/ contacts just like the iphone does.My intention is to be able to sync my smartphone's data with my home server that actually carries my PIM applications. Basically, during the day when I am not home I will modify or add/remove data from the phone. When I arrive home I would like to be able to sync my changes to my server. My laptop will be reconfigured to retrieve and sync from that server.
Proudly running with Slackware on ALL my machines (gotta love Slack!), and Apple being **** by not supporting open source and linux environment, it seems that it will be difficult to have something working out of the box and will probably require jail-breaking the device, etc.. I don't want to rely on external services such as Google calendar except for the email from Gmail.
View 1 Replies
View Related
Aug 2, 2010
I was trying to figure out how to get my network drive to mount as a local drive on my computer. This was back on 9.10. Since I've upgraded to 10.04, my boot process halts and tells me (paraphrasing) /shared is not ready to mount. To continue, pres S to skip or M to manually mount the drive.
Well, I have it mounting now through GVFS and I don't need this in my startup anymore. Frankly, it's just annoying that it won't boot into Ubuntu right away. So, what's the startup file I need to edit to remove the attempt to mount the network drive?
View 1 Replies
View Related
Dec 26, 2010
i can not find the network storage drive on my MS network using Ubuntu.i can find other computer using xSMBrowser but not the hard drive connected to my router (LAN)i have tried samba and a few others
View 5 Replies
View Related
May 3, 2011
How it works in Windows.
I have a server designated as F: drive. This server is a linux server. All computers that access this server are windows machines.
In windows, you can make a "Short Cut" that links a Executable program to the F: drive on the server. When you click on this "Short Cut", Windows will "Run" your program in the exact directory the Executable is located.
Thus, if you Make a "Short Cut" called "Customer" on your network F: drive, you can click on that shortcut and "Customer" will run as if you ran it directly off the F: drive, NOT your station drive of C:
Now *MY* scenario what I WANT to do:
I want to copy the above scenario and be able to do the same thing with Linux and WINE.
I have tried to make a "Shortcut" to my Linux laptop, but it fails. I can only "Copy" the program to the laptop. And when I run it on the laptop, it will not run, because it does not recognize the "F:" drive having all the data files, it only recognizes the C: drive of my linux.
When I tried to make a "link", it says something like "LInk not supported by this file".
So, is it possible to make a "shortcut" to a executable file on the network server, so that if you run the shortcut, it will run the program as if it is located on the F: server instead of the linux station? In Windows, it has a field that says "Target", in which the file will be ran in that directory.
View 1 Replies
View Related
Sep 20, 2010
Currently my office use a Cisco Firewall which will only allow the ANYCONNECT utility to do the vpn connection. I found a Linux utility (OpenConnect) which will do the same thing, but allow me more flexibility with my networking needs.What I ultimately would like to have is to have a switch that I can connect any network device into it and be connected to the office. IE (my IP Work Phone and Computer) Currently I have is a computer with fedora 13 and two network cards eth0 (home network - connected to a router) and eth1 which I would like to connect a switch to. OpenConnect communicates fine and I can see the work network from the Fedora machine. It creates a vpn0 tun/tap device and I don't know how to pass communication to/from the eth1 device.
Do I try to iptables the ports for the phone and services I need on the computer? Or do I build bridge; and If I do what am I bridging. I have tried making a bridge from eth1 to vpn0 which reply's with unsupported device or something like that.Unfortunately my network skills are bit limited and my office says "it can't be done". Their solution is for me to buy a ASA5505 (or something device) and have a static IP. I would have to make it work as my router and even then it will only DHCP 10 ip addresses; which will cause a shortage of IP addresses in the house.
View 1 Replies
View Related
Jan 6, 2010
I've been trying to accomplish this on my own, but I can't seem to figure it out...
All I'm trying to do (for learning purposes) is to get a message to print out to a log file every 5 minutes.
This is on Ubuntu Server 6.06.
Logged in as root ( I know, I know, should have sudo'd, oh well... )
Created a new file with this in it:
Code:
Added this line:
Code:
( I wasn't sure the proper command to try every 5 minutes, but this is my latest iteration. I also started with just */5, and that didn't seem to work either. )
Saved and exited crontab.
Console reports:
Quote:
Using command: ps -ef | grep cron
Quote:
So I waited 10 minutes to be safe.... and saw no log file appear.
I checked this page here: [url]
I wasn't sure what it meant by the PATH= variable they wanted me to set, my /etc/crontab file states:
Code:
But I didn't know if it meant there, or in my crontab -e location, so after the first failed attempt, I added the line from that webpage as well to crontab -e:
Code:
Waited another 10 minutes to be safe, still nothing.
View 4 Replies
View Related
Mar 2, 2010
I have a problem with mp3blaster.
I want cron to act as an alarm clock: first, it plays an mp3 file and then it runs the speech synthesizer festival which tells me to get up and do stuff.
Now, mp3blaster doesn't do anything when I run it from cron, but festival works without problems.
I've found some possible causes for mp3blaster not working through cron. Someone suggested that pulseaudio is not started. This shouldn't be the problem for me, since I don't even have pulseaudio installed, and festival is playing sound without problems...
I don't know what I should do to make it work.
Here is my script - runalarm.sh:
Code:
I don't want to include the wakeup text here since it contains profanity.
The mp3 player could be another one too. mp3blaster happens to be the only player I know that is easy to run from console, like this "mp3blaster goodsong.mp3", without and playlist creation or other stuff like that.
I can run the runalarm.sh from SSH console and it works fine, the mp3 starts playing and festival speaks after that. When run from cron, festival starts speaking right away and no mp3 is heard.
View 7 Replies
View Related
Mar 25, 2011
I have a backup sh file that I have been using for a long time. It has always worked. 2 Days back I switched to a different pc and now suddenly the script don't work.If I run it manually in the terminal it works. But when it execute with cron it doesn't copy any files to the backup destination. It starts but doesn't copy anything.Can someone help me as to why it works manually but not with cron ?
View 9 Replies
View Related
Oct 6, 2010
I can't seem to get a cron job to work on my Fedora 11 box. When I check the logs, cron is actually working. In my /etc/crontab I have an entry to run the cron job on my Moodle installation:
30 * * * * wget -q -O /dev/null http://moodle.name.name/moodle/admin/cron.php
when I run crontab -l it is not showing me anything, I am confused
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 4, 2011
I'm wondering what the best way to sync certain folders located on my network server with my Ubuntu laptop is. I've tried Unity, but it was a little too geeky for me . Dropbox would be perfect, except people were having issues syncing with network folders, some losing all their files in the process. All I want to do is synchronize a few folders with my local "My Documents" folder on my Ubuntu laptop, so I can write my school papers without an internet connection. Then, when I'm connected again, I should be able to sync with the folder on the network. It should also work vice-versa as well (update a file on the NETWORK, sync, then access the updated file on my Ubuntu laptop).
View 3 Replies
View Related
Jan 22, 2011
I have a problem with grep in my cron job:
A simple command like this doesn't work
Code:
Of corse I have tried with full path like this
Code:
Both of this scripts work fine when started from my shell. Unfortunately they don't work when executed from cron job, and I get an empty p.txt file.
Here is my crontab file:
Code:
Have any one of you faced this kind of problem before ?
View 3 Replies
View Related
Aug 29, 2010
OS: ubuntu 10.04 lts. Runing on latest oracle virtualbox vers.
This works:
Established ubuntu one. Able to log into ubuntu one. Able to make folders.
This doesn't work:
When uploading files, it prompts "uploading". But never finish. And files do not get uploaded. To sync a folder on desktop and ubuntu one never works.
View 2 Replies
View Related
Oct 2, 2015
I use my netbook as a CLI typewriter basically. Is there any way to install a service or something that would monitor a certain folder and automatically sync documents to a remote server at say 5-10 minute intervals?
View 4 Replies
View Related
Jun 1, 2010
I have a simple cron job that runs every night & I tested this manually by just running the command as root in bash and all worked fine. It took some time but the crob job finished and I got my results emailed to me perfect / as expected.
Here is root's cron job listing:
Code:
Now I noticed that I never ever got anything emailed to me the following day so I am wondering if perhaps the Cron daemon doesn't have permissions or has an issue running / executing the command rather than when I test the command as 'root'? When I view my logs, I can see the command being executed and don't see any errors however I don't get email results when Cron runs the job rather than me taking the command and running it manually in Bash...then it works. What am I missing?
Code:
View 9 Replies
View Related
Feb 20, 2010
At the moment, my Music folder is shared across the network so my son can access it on his laptop.If I buy a regular external USB hard-drive, will I be able to have that permanantly mounted and be able to share the Music folder that I would create on it?Or would I be better off spending a little extra on a networked hard-drive plugged straight into my Netgear router? If so, any recommendations on a make & model that is happy with Ubuntu as well as Windows?
View 6 Replies
View Related
Jan 29, 2010
Okay so my school has a Z: drive which is the network drive that holds all of the students folders. I need to connect to it so that I can complete projects and place them in my server drive. How would I go about doing that?
View 1 Replies
View Related
Aug 23, 2010
In my university linux lab I have access to a linux network drive where I save programming code.I have ubuntu as a guest in virtualbox on my xp computer in my dorm. How can I map the linux network drive to ubuntu for use in virtualbox? I already have it mapped in windows, but can't get it mapped in ubuntu / virtualbox
View 1 Replies
View Related
Oct 10, 2010
I have a network where several machines are connected through a switch. I'd like all machines to be able to read/write to/from the hard drives of the other machines. for example:
machine1 will read/write files that are on the hard drive of machine2
machine2 will read/write files that are on the hard drive of machine1
machine3 will read/write files that are on the hard drive of machine1
machine3 will read/write files that are on the hard drive of machine2
etc etc...
all of this reading/writing will be done through the terminal, and programatically. rather than SSHing into a machine to read/write files from it, I'd be happy to set up some 'conventions' on how to access hard drives of various machines. for example:
'hdd1' will refer to the hard drive of machine1 (that has the static IP of 192.168.0.1).
'hdd2' will refer to the hard drive of machine1 (that has the static IP of 192.168.0.2).
'hdd3' will refer to the hard drive of machine1 (that has the static IP of 192.168.0.3).
etc etc...
this way, when I want to read/write a file, its PATH will be something like ~/hdd1/myfile.txt; ~/hdd2/anotherfile.txt;
View 4 Replies
View Related
Nov 9, 2010
I'm unable to mount a network drive on my ubuntu 10.04.
View 2 Replies
View Related
Jan 5, 2011
i ve been a thorough user of ubuntu and one reason for me using windows is that office uses a windows based software. i ve been lucky to install the same on my laptop and executing it using wine. the hitch is that whatever i work on the laptop doesnt get updated in the server. is there a mapping needed or some extra configuration ? the documents i post on my laptop is visible within the software but its not shown up on server database.
View 9 Replies
View Related
Apr 5, 2011
My laptop is connected to my network through wifi. One of my desktops is always running as a file server for the rest of the network. Currently, to access that file server, I have to manually mount the network drive each time I boot the laptop. I have tried adding a line to fstab to have the drive mounted when the system first boots up, but since the wireless connection isn't active yet, the system hangs with an error message saying that the drive was not able to mount correctly and I have to press a key to continue.
is there any way to have the system automatically mount the network drive AFTER the network connection has become available AND, if for some reason the drive is not able to mount (i.e. I'm on the road and the laptop logs into a different network), it simply bypasses that and continues booting without displaying an error?
View 2 Replies
View Related
Jun 20, 2011
Having become so frustrated With the many bugs in 11.04 I have stepped backward and instead installed Ubuntu 10.10 onto my Dell laptop. Until now I have been very pleased, as nearly everything has worked well, straight out of the box. So, just as I thought I was home and dry I have noticed that I cannot see my Synology NAS drive on my network. This is doubly frustrating because my other PC, also running 10.10, has suddenly lost it's ability to see the NAS drive too. Throughout last week I used the NAS in conjunction with my Ubuntu PC without a hitch but now it's gone. The NAS is visible to both Windows and Macs it's just the Ubuntu machines that cannot use it. It is also vaguely annoying knowing that the NAS itself uses a Linux OS or maybe that could be a clue to what's wrong.
As things stand my Apple Macs can see each other, they see the Windows box, see the NAS and see the shared folders on the Ubuntu machines. The Windows machines see the Macs, each other, the NAS and the Linux shared folders. The Ubuntu machines only see the Apple Mac shares, no Windows and no other Ubuntu shared folder nor the NAS.
It is curious because the little program Avahi Zero Conf Browser can see absolutely everything on my network yet the Ubuntu GUI is proving to be the most difficult thing to network using anything other than than a web browser. Is there a concise definitive reason why Linux (Ubuntu) is so infernally difficult to network? I am not very experienced with Linux or the terminal but was hoping that this system might by now have become a little more user friendly for ordinary people.
Could there also have been something in a recent OS update that has killed off my PC running Ubuntu's ability to see the NAS where previously there has been no problem.
View 9 Replies
View Related
Aug 18, 2011
My laptop is connected to my network through wifi. One of my desktops is always running as a file server for the rest of the network. Currently, to access that file server, I have to manually mount the network drive each time I boot the laptop. I have tried adding a line to fstab to have the drive mounted when the system first boots up, but since the wireless connection isn't active yet, the system hangs with an error message saying that the drive was not able to mount correctly and I have to press a key to continue.
My question is this: is there any way to have the system automatically mount the network drive AFTER the network connection has become available AND, if for some reason the drive is not able to mount (i.e. I'm on the road and the laptop logs into a different network), it simply bypasses that and continues booting without displaying an error?
View 8 Replies
View Related
Feb 14, 2010
I recently installed Ubuntu with partion with Vista, and I am enjoying the Ubuntu experience will buy a book and learn this awesome OS, my question is this:
My wife has a laptop that runs Vista, and when i use my Vista she can see my files and I share this hard drive with her, but when i run Ubuntu she cant see this drive, i have extrernal hard drive as my backup with lot of different files on it and she can pull files from it but when i use Ubuntu she can see on her Vista Network, how can i make so when i use Ubuntu she can see my drive? On my Windows i set up sharing of files but how do the same with Ubuntu.
View 1 Replies
View Related
Aug 28, 2010
I have a cron backup scheme in which I rsync, then tar, then copy files on my internal hard drives to an external (USB) drive. When it works, it works. But I often get a "Permission Denied" message for all of these tasks. how the external drive is auto-mounted so I edited the etc/fstab so that the owner of the cron job is also the owner of the external drive (I think. Unfortunately, I'm not at that machine right now (it's at work), I can't give the exact fstab line (I will post it as an update to this thread next time I am at the machine).) BUT, I still get times when the cron backup runs fine and other times I get the Permission Denied. This is a shared machine that is dual-booted, so what I *think* is going on is that when the machine is rebooted to Fedora, but nobody logs in, I get a Permission Denied for the cron backup. It seems like on days when someone has logged in as the main user and left without logging out that the cron backup runs fine.
View 8 Replies
View Related
Dec 16, 2010
I just reinstalled my machine with Ubuntu 10.10, and thats is the same version it had before. I just got a new Linksys router as well and when I installed Ubuntu wireless networking worked fine during the install and after but... when I update that wireless card thats working fine for years and works fine before the update half the time won't see my wireless network and if it does it won't accept my key the routers fine physically the cards fine Any ideas?
View 2 Replies
View Related
Dec 27, 2010
I have recently built a HTPC with a GA-G41m Combo and it has worked well with Ubuntu 10.04, however last week some time the on board network stopped working. I have tried different routers and different cables, but the network light wont come on. What Can I doo?
View 5 Replies
View Related
Jun 15, 2011
i've installed it on my parents old computer, mostly for downloading. But wired internet did work all the time but then i had to reset our router because of some problems and now it doesn't work anymore! But the strange thing is, if i put the cable on my own laptop with windows on it, then it works as normal.
So i guess its some kind of DNS problem, but i'm very new with ubuntu and also not so good with computers. Our network is simple just an modem connected to an router: Sitecome WL-341.
View 4 Replies
View Related