Server :: Cronjob Rsync Doesn't Work
Mar 28, 2011
I have a computer that I would like to backup the home directory onto a server. I created a script called wien_backup.sh that contains the following:
#!/bin/bash -l
/usr/bin/rsync -rv --delete-after --ignore-errors -e /usr/bin/ssh root@wngr403-unix2:/home/ /space/systemimager/Wien/
where wngr403-unix2 is the computer I am backing up, and the script is ran from the server. If I run the script by itself, it works just fine. If I run it as a cronjob, the /var/log/syslog says it ran, but it does nothing.
View 6 Replies
ADVERTISEMENT
Sep 12, 2010
i wanted to ask you for help in setting up a cronjob, that restarts a game server.By now I made a script that kills the screen of the server and then restarts it.
View 2 Replies
View Related
Jan 28, 2010
I am having some problems with rsync,I put the rsync command in a shell script, and I am calling the shell from a 3rd server, but it stops midway through.s anyone else experienced these problems?
View 3 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
Apr 30, 2010
I am trying to run the following only once every three months but looks like it runs every day. I edited crontab -e and added the following:
Code:
0 23 * jul,oct,jan,apr * /path/to/script > /var/log/script.log 2>&1
View 2 Replies
View Related
May 27, 2010
I'm trying to setup a cronjob that needs to run every 40 minutes between 10am and 3.30pm.I generally used cronjob for simple configuration, but now I'm a bit lost.There is a way to setup cronjob for that configuration? (better if all in one line of code, not multilines).
View 4 Replies
View Related
May 10, 2010
I have the following Cron job scheduled on my Postfix mail server: Code: 00 18 * * * /usr/bin/clamscan -r --remove /home/.This is just running a scan on my entire /home/ directory and removing any infected files it finds. My question is since this is being ran at 6pm via Cron, how can I get the results of this job emailed to me via text? Does anyone recommend a command I can add to the end which will dump the results into a file or email and send it to a specific email address? This server is my company Postfix MTA for everyone.
View 14 Replies
View Related
Jun 1, 2010
If I make a cronjob to reboot a server every 3 days at like 2am? This way it will free up ram, etc and cause less problems right? I know a guy that is doing this, and I'm trying to convince him otherwise.
View 5 Replies
View Related
Mar 29, 2011
I know that you can access and run any script of the web by wget:
Code:
wget mydomain.com/page.php
But this is literally accessing it externally through the web, i think that it is safer and faster to access the script internally. I am using lighttpd to host my php pages, and is there a way to do that? I have had some hosting experiences, the cronjobs on the hosts let u input:
Code:
* * * * * php /public_html/path/page.php
View 2 Replies
View Related
May 21, 2011
Server Apache doesn't work.Note the LOG line,you cannot modify or delete "logs/"
View 1 Replies
View Related
May 26, 2010
small office network with Linux CentOS 5.4 internet server. I use Squid 2.6.STABLE21. I have static IP.If I masquerade my small office net FTP works, but if I disable masquerade then FTP doesn't work through Squid.I was trying to stop iptables but the problem was the same.
View 9 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
Apr 17, 2011
host - ubunut 1010 desktop 64bit
virtualizer - VirtualBox ver 3.2.10 r66523
guest (VM) - ubuntu 1010 server 64bit
[code]....
View 1 Replies
View Related
Jul 25, 2011
My ftp server runs vsftp. The ftp passive ports stopped working while iptables is running, so users can't ls their dirs. I know that you need to load the modules of ip_conntrack and ip_conntrack_ftp, the problem is when I modprobe ip_conntrack I get the error: FATAL: Module ip_conntract_ftp not found. No that is not a typo. ip_conntract_ftp? Am I missing something?
View 2 Replies
View Related
Apr 25, 2011
I am trying to install some packages in a ubuntu 8.10 server, however, apt-get doesn't work (I get several 'not found' errors). Is there any way to do that? I know this version is probably not supported anymore but I can't just format a customer server because it's OS is outdated...I just can't put my sources.list on it because I am on ubuntu 10.10 and it would download updates for the wrong OS probably causing a huge damage on the old one.
View 9 Replies
View Related
May 1, 2011
Have done a fresh install of 11.04 32bit and after getting everything to work I have run into a 11.04 killer for me. PS3 Media Server don't work It doesn't detect the PS3 correctly and on the PS3 side it just keeps saying "data corrupted" for every video I try to play. It used to work perfectly on 10.04.
View 3 Replies
View Related
May 22, 2011
postfix
Code:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
[Code].....
Followed [URL] ubuntu 11.04 server
View 3 Replies
View Related
Jan 28, 2010
I used fedora12 builded mail server uning sendmail and dovecot at my home, when I at home everything are works fine, no matter I sent email to hotmail, or hotmail sent to my mail server, but I got the problem that I can't access my home server when I at office, the error messages as below:
#telnet xxx.xxx.xxx.xxx 110
-ERR Cannot connect to POP server xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx:110), connect error 10061
#telnet xxx.xxx.xxx.xxx 25
[code]....
P.S there is no firewall between the my office and home
View 3 Replies
View Related
Dec 17, 2010
I have a server that has snmp installed(Version is net-snmp-5.3.2.2-9.el5_5.1). This server has 5 n/w interfaces with diferent ip's. My problem is when i try snmpwalk on to the main interface, in my case "bond0" with the assigned ip address there is no response.
eg: snmpwalk v2c -c nature 172.17.241.190
No Response from 172.17.241.190
But when i run the same query with "localhost" snmpd responds.
eg: snmpwalk v2c -c nature localhost
[Code].....
I want to snmpwalk in to the "172.17.241.190".
View 2 Replies
View Related
Apr 28, 2010
I have a dedicated server running CentOS 5, Plesk 9.2.2, SMTP Postfix and Courier-IMAP.The issue I have is that on all domains on the server receiving email works fine however sending email never seems to work. This is from email programs, my phone, webmail and PHP. None of them seem to be able to send email. If it is of worth Spam Assassin is running however I don't feel it is causing any problems.
View 7 Replies
View Related
Apr 11, 2011
My mother runs Ubuntu 10.04 on her home computer, but on her workplace they use some version of Windows. Her IT-guy sent her a .rdp-file for logging in to her workplace server. This file doesn't work in Ubuntu, and the IT-department at her job can't solve the problem. Ergo; She's unable to log on to her workplace computer/server from home.
View 3 Replies
View Related
May 29, 2011
After I finished upgrading Xubuntu from 9.10 to 10.04, I discovered that my keyboard stopped working in X Server. The upgrade process was running smoothly until the last moment, when it produced some error, which I, unfortunately, did not write down. Anyway, the upgrade has completed; uname shows kernel version 2.6.32-31. Now the keyboard works fine if I select a recovery mode at startup, but if I type 'start gdm' from the shell or select the default option in GRUB while booting, the keyboard becomes unavailable right from the login screen. I can log on using the virtual keyboard, but that's all I can do; the keyboard is still dead.
View 5 Replies
View Related
Dec 5, 2010
I can see that in yum-updatesd configuration i can use smtp_server to rely mail notifications as per below outputs from man pages smtp_server SMTP server to use when sending mail, host or a hostort string. Defaults to localhost:25. The problem that this option doesn't work at all and it rely into the local MTA not the one set on the smtp_server
View 2 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
Feb 7, 2010
So here is what I'm trying to do: I want to share a folder and have it so that guests can access it, but only read. I also want to make it possible that I can mount it as a network drive on my Windows 7 machine and login with my linux account so that I can have write access. This is from a completely stock Ubuntu 8.10 and Samba config. Everytime I've tried I've failed to get it working.
View 1 Replies
View Related
Sep 28, 2010
Using Fedore 12 I am trying to mount on a server with the following command: # mount -t cifs //samba-pool-suse/pool-suse /mnt -o user=xxxx I was waiting that the system askme the user password and thats all, but the answer is: mount: wrong fs type, bad option, bad superblock on //samba-pool-suse/pool-suse, missing codepage or helper program, or other error (for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program) In some cases useful info is found in syslog - try dmesg | tail or so using:# dmesg | tail returs: CIFS VFS: cifs_mount failed w/return code = -22
View 3 Replies
View Related
Mar 2, 2011
does anyone know how can I use locate with rm? rm `locate "some file"` does not work when my pathnames occasionally contain:
-spaces and other characters (like + or possibly others that need escaping)
-greek characters
how can I grab line-by-line the output from locate and wrap quotes"" around the paths?
View 5 Replies
View Related