Ubuntu Servers :: Make Sure Cron Job Copies Files Correctly

Jul 1, 2010

I made a Bash script that is fired by a Cron job every morning. It dumps an SVN backup on some Samba shared drive. I would like to know how I can make sure the job worked correctly without having to verify the shared drive every morning. Right now, I take the job's output, save it to a log file and send this file by email. But the ouput isn't so great.

[Code]....

View 2 Replies


ADVERTISEMENT

Ubuntu Servers :: Cp Only Copies Directories And Not Files?

Sep 27, 2010

I am trying to copy the files from my WHS disk to my Ubuntu Server disk. I have the windows disk mounted at /media/WINDOWS and I want to transfer to /storage so I ran;Code:sudo cp -r /media/WINDOWS /storageIt takes about 4-5 seconds and is complete, but there is about 500 GB worth of data there so I know it didn't really copy everything over. When I look at the files in console it shows them, but when I look at the /storage through SAMBA on my Windows machine, it only shows the directories.?

View 9 Replies View Related

General :: Make All Cron Jobs In Script Files?

Jun 28, 2010

in my linux box i have lot of cron jobs. i need to make all cron jobs in script files. is it possible to make this. like[URL]Now how i change this in a script file

View 4 Replies View Related

Ubuntu Servers :: Setting SAMBA Server Correctly - Can Only Access Files From The Win 7 Machine

May 31, 2010

Im having trouble setting my SAMBA server correctly. I have two Win machines, one with WIN7 and one with XP. I have one Ubuntu machine and Ubuntu Server 10.04. My problem is that I can only acess files from the Win 7 Machine. When I try to map out the shared dirs on my serverI get asked for user and password, when I enter my creditensials it dosent help.. What to do? I used the sample smb.conf file and open for no restrictions..

[Code]....

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

Debian :: K3b Is Failing To Make Copies Of DVDs?

May 6, 2010

I am trying to make a backup copy of a DVD without success. k3b simply stays there silent doing nothing and I have to terminate the application. Is there a way to make DVD copies if one needs to?EDIT:I am using the home partition for caching as it is the biggest one on the disks; /tmp is too small.

View 5 Replies View Related

Server :: MySQL Backup Cron Job Not Executing Correctly?

Mar 2, 2011

I own a CentOS 5 VPS. I typed crontab -e, and then I added the following line to automatically have my server backup mysql

0 * * * * mysqldump -u root -p password --all-databases | gzip > /home/dbbackup/database_`date '+%m-%d-%Y_%H'`.sql.gz

When I go in and look, it doesn't place any files in /home/dbbackup. When I run

mysqldump -u root -p password --all-databases | gzip > /home/dbbackup/database_`date '+%m-%d-%Y_%H'`.sql.gz

View 3 Replies View Related

Ubuntu :: Copies Files 3/4 Of The Way Through And Reads?

May 23, 2011

My ubuntu started out right, it copies files 3/4 of the way through and reads ready when you areThe foward button does not let me click it

View 1 Replies View Related

Ubuntu :: Setting Up A Cron Job Creates A Tunnel To Remote Machine To Work Correctly On 9.10?

Jan 12, 2010

I am having some trouble setting up a cron job that creates a tunnel to my remote machine to work correctly on Ubuntu 9.10. The setup looks like the following:

(1) myscript.sh (executable)
Code:
#!/bin/bash
ssh -2 -x -i /home/user/.ssh/id_rsa.prv -L 3128:myremotemachine:3128 myaccount@myremotemachine
(2) crontab -e, added the following lines:

[Code]...

View 5 Replies View Related

General :: Rsync With Scp - Copies Everything - All Files

Jul 12, 2011

rsync -r -v -e ssh root@nn.nn.nn.nn:/usr/local/websites/* /usr/local/websites and each time I run it it copies everything - all files. I thought rsync was only supposed to copy files that had been added or modified.

View 3 Replies View Related

Programming :: Finding Copies Of Files Based On MD5SUM?

Jul 13, 2010

I have a directory with some data files in it. I did an md5sum find, and built an index of all the files contained:

Code:
find ./* -type f -print0 | xargs --null md5sum > MD5SUM

Now, based on my new index, I want to find the copies of these files as they appear in a new directory, where they have been renamed and reorganized.

View 5 Replies View Related

Ubuntu Servers :: Make A Crontab To Email Log Files?

Jul 28, 2010

I would like to make a crontab task to email a log file to me every night.

How would i do this? I know how to make crontab jobs (and sett the time on them), i just dont know the command i would write for this particular job.

View 1 Replies View Related

Ubuntu Servers :: Add Files And Make Chmod A Little Easier

Sep 13, 2010

I have set up a home server with ubuntu desktop since im new to this and need the gui. I have no problems with the lamp package or setting that up. My question is, can you setup a ftp server and then connect to it from a windows pc on the same network with a client like core ftp? I want to do this to add files and make chmod a little easier if possible.

View 4 Replies View Related

Software :: When Copy Files Between Two Samba Shares From Windows Machine \ Copies The File Through PC To The New Destination?

Apr 17, 2011

I recently replaced my windows fileserver with one running Ubuntu. One thing I've noticed (which is a annoying) is that when I copy files between two samba shares from my windows machine, it copies the file through my PC to the new destination. On windows shares it just did some sort of local copy (ie it took about 2 seconds) rather than 3-4 minutes. Is this the normal behaviour, is there any way around it on Linux

View 5 Replies View Related

Fedora Servers :: Make A Mirror Site - 15 I386 Rpm Files

Aug 22, 2011

I want to make a fedora mirror site and i only want to have the fedora 15 i386 rpm files i dont want to download all the rest. How do i di this ?

View 2 Replies View Related

Ubuntu :: Make Sure Everything Backed Up Correctly?

Mar 12, 2010

I finally bought a second hard drive to back up all my files since I'm planning on wiping my hard drive completely clean and reinstalling Windows and Ubuntu once Lucid comes out. I'm just wondering, how common is it for files to become corrupt when transferring from one hard drive to another? I ask this because I usually have trouble when transferring (usually large files) onto my flash drive. I know that actual hard drives are different but I just want to make sure. Also, is there a way I can confirm that everything transferred correctly? Most of my files are music so it would be a pain to check every single one to see if it works.

View 6 Replies View Related

Ubuntu :: Cron Job Not Running - How To Make It Run

Mar 3, 2010

I have a cron job set up to backup my ~/ directory everyday at 10:00. But the cron job is not running. here is my confile that I loaded into crontab...

Code:

#backup everyday @ 10:00 AM and 10:30 AM
00 10 * * * /home/dave/bin/backup.sh
30 10 * * * /home/dave/bin/music_backup.sh

[code]....

the *.sh are executable. I logged out and logged back in since I put the cronfile in crontab. The commands that I use in the *.sh files work fine when I run them manually.

View 9 Replies View Related

Ubuntu Installation :: How To Make Upgrades Correctly

Apr 30, 2010

I want to support Ubuntu, and I want Ubuntu to succeed, but..Each of the recent upgrades has been more painful than the last one, and it seems like the same old problems are persisting. In Koala it was the sound cards, and though I've just started my struggles with the newest release, it is very obvious that the server-load problems are still there. Hey, you Ubuntu people don't have to invent BitTorrent technology, you just need to make it the transparent default.

It seems to me that most of the problem is that Ubuntu's economic model is broken. They need more testing for new features, and the model needs to be funded so that the features which are added are tested thoroughly. I suggest that they need a system where we the users put our money where our mouths are, so to speak. We should be allowed to subscribe to a budget for proposed new features, where those budgets included sufficient testing.

Actually, I used to be a professional programmer, but I don't want to program these days, even to help Ubuntu, because I know just how difficult and stressful it is to do program well. However, I'd be willing to put some money out to help improve Ubuntu--but I also want to know just what I'm buying into.

There are various ways this could be done, but here is a link about one version of charity funding I was thinking of a while back. As it applies here, the Ubuntu foundation would act as the charity brokerage, and we would donate by buying charity shares in proposed features (including MORE testing).

[URL]

View 5 Replies View Related

Ubuntu Installation :: Kubuntu On A External HDD And Make It Boot Correctly?

Aug 8, 2010

Esteemed (K/X)Ubuntu'ers, I need some help. I had a Samsung HDD (Internal) that crashed, was a fault of the store that sold it to me and they went bankrupt. I thought I buy an external HDD (Western Digital Elements 1.5TB) and boot Kubuntu from there, so I still use the computer till I buy a super nice one after USB 3.0 hit the streets.

The problem I keep having by booting of the external HDD is that GRUB keeps saying Code: error: bad filename how to install Kubuntu on a external HDD and make it boot correctly?

View 6 Replies View Related

General :: How To Make Growisofs Working With Cron

Aug 9, 2010

I make a script to automate burning backup files on dvd. It works fine if I start it from root user, but if I start it. From cronjob do noting. I try on growisofs the option -use-the-force-luke=force but nothing happens. I check the env of cron:

HOME=/root
LOGNAME=root
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
PWD=/root
SHELL=/bin/bash
SHLVL=1
XDG_SESSION_COOKIE=3e0d70f7b71074a0b1fff4bb4aa97d13-1281297181.926502-724038309
_=/usr/bin/env
and it seems ok i've got my script in /usr/local/bin and growisofs in /usr/bin

Code of my script below:
#!/bin/bash
bkup_path='/bkrepo/';
prefix='PAR*';
totdimfile=0
for FILE in $(/bin/ls -r $bkup_path$prefix)

do
dimfile=`/bin/ls -l $FILE | /usr/bin/awk -F " " '{print $5}' `
let "totdimfile += dimfile";
if [ "$totdimfile" -lt "4700000000" ]
then
NAMEFILE=`/bin/ls -l $FILE | /usr/bin/awk -F " " '{print $8}' `
ALLNAMEFILE="$ALLNAMEFILE $NAMEFILE";
fi
done

/usr/bin/growisofs -use-the-force-luke=force -Z /dev/scd0 -R -J $ALLNAMEFILE
/usr/bin/growisofs -M /dev/scd0=/dev/zero
/usr/bin/eject
end code of my script

View 1 Replies View Related

OpenSUSE :: Cron (Cannot Make / Remove Entry For PAM Session)

Jun 28, 2011

I run a virtual server with a standard minimal openSUSE 11.4 installation (Strato image) and all recent updates installed.
Code:
$ uname -a
Linux servername 2.6.18-028stab089.1 #1 SMP Thu Apr 14 13:46:04 MSD 2011 i686 athlon i386 GNU/Linux

A few days into running the server I found that although /usr/sbin/cron was running it didn't execute the cron scripts. Instead, I find this:

Code:
$ tail -n 3 /var/log/messages
Jun 28 18:00:01 servername /usr/sbin/cron[28590]: pam_warn(crond:session): function=[pam_sm_open_session] service=[crond] terminal=[cron] user=[root] ruser=[<unknown>] rhost=[<unknown>]
Jun 28 18:00:01 servername /usr/sbin/cron[28590]: (root) PAM ERROR (Cannot make/remove an entry for the specified session)
Jun 28 18:00:01 servername /usr/sbin/cron[28590]: (root) FAILED to open PAM security session (Cannot make/remove an entry for the specified session) repeated every 20 minutes.

I have this:
Code:
$ cat /etc/pam.d/crond
# The PAM configuration file for the cron daemon
# No PAM authentication called, auth modules not needed
auth sufficient pam_rootok.so
account sufficient pam_listfile.so item=user sense=allow file=/etc/cron.allow onerr=succeed quiet
auth include common-auth
account include common-account
password include common-password

As per the standard installation and /etc/cron.allow doesn't exist (I tested if it made a difference if it existed with the single line root in it, but there was no effect). I need cron to execute because I want zypper to auto-update my server. On my home openSUSE 11.4 installation the problem doesn't exist. Is it perhaps related to the settings in the yast security center?

View 9 Replies View Related

Ubuntu :: Samsung N150 Plus Touchpad - Make The Two Finger Scrolling Work Correctly?

May 17, 2011

I've just installed Ubuntu 11.04 on a Samsung N150 Plus for a relative who I've been trying to get to use Ubuntu for ages and want to get it as perfect as possible.I have everything working well except two finger scrolling on the touchpad it's quite buggy and skips about as I scroll with it.how to make the two finger scrolling work correctly?

View 3 Replies View Related

Ubuntu Servers :: How To Use The /etc/cron.d

Mar 17, 2011

I have this symlinked into my /etc/cron.d folder:

Code:

*/5 * * * * python /srv/bidsite/manage.py send_mail
* * * * * echo `date` >> /home/bidsite/what.txt

but it does nothing. What I really want to happen is the first line. The second line is just for testing.

View 3 Replies View Related

Ubuntu Servers :: Cron For Root Does Not Run

Jan 28, 2010

Cron for root does not run,it's 8.04LTS ubuntu server,however Cron runs for other users,Can anyone help?i've checked many times that i have the right syntax.

View 9 Replies View Related

Ubuntu Servers :: Cannot Find A Particular Cron Job?

Oct 25, 2010

Ubuntu server 10.04:I had webmin installed on my server, but I found it was using too many resources for what it offered, so I went ahead and uninstalled it. I'm not sure exactly which version it was, but it was the most recent version a month ago. I ran the uninstaller which ships with webmin.Well, now everyday my root account gets the following email:

From root@DOMAIN.com Mon Oct 18 00:42:01 2010
Return-Path: <root@DOMAIN.com>
Date: Mon, 18 Oct 2010 00:42:01 -0400

[code]....

View 3 Replies View Related

Ubuntu Servers :: Cron Will Not Run Rsync Job

Mar 30, 2011

I am running a headless Ubuntu server accessed through Webmin. The server is running 10.4.2 64 bit version. I have a number of cron jobs including a simple back-up job which is:
Code:
rsync -av /media/server/ /media/backup/backup/
All of the other jobs run fine but for some reason this job which is scheduled to run each day at midnight does not run. If I SSH into the server and run the job manually it works fine.

The output of 'crontab -l' is:
@daily rsync -av /media/server/ /media/backup/backup/
11 3 * * * /etc/webmin/package-updates/update.pl
@daily tar czf /media/backup/serversystem.bz2 --exclude=/proc --exclude=/lost+found --exclude=/backup.tar.bz2 --exclude=/mnt --exclude=/media --exclude=/sys /
@reboot inadyn --username ********** --password ********** --update_period_sec 600 --alias **********
@daily /etc/webmin/backup-config/backup.pl 12978522112842

The output of 'crontab -e' is:
Error opening terminal: unknown.
crontab: "/usr/bin/sensible-editor" exited with status 1

View 9 Replies View Related

Ubuntu Servers :: Cron Isn't Working

Jun 18, 2011

I'm trying to remotely schedule a shutdown using cron but I can't get it to work. I did setup the following 'sudo crontab -e'

Code:

For some reason doesn't this work, since I was able to login and get this output when using 'date'

Code:

View 7 Replies View Related

Debian Configuration :: Make A Cron Job That Mounts A 2nd Local Hard Drive?

Jul 1, 2011

I am making backups and I need to make a cron job that mounts a 2nd local hard drive.

It is not listed in my fstab file and I mount it manually in nautilus (having to type a password). It is designated as /dev/sdb1 and /media/repo when it is mounted. Can I get cron to mount it and then add the password or do I have to add it to fstab?

View 3 Replies View Related

CentOS 5 Server :: Dovecot/apache Not Working Properly - How To Make It Work Correctly

Mar 20, 2010

I am running a quad core centos 5.4 box that is having a strange problem with dovecot. The administration panel is able to send emails through dovecot but not any of the user accounts (ie with webmail). I've done a bit of research with what could be wrong but haven't had any luck so far I am also having a weird problem with apache: on a c++/php bittorrent application I was going to be running on a subdomain of my main site I get a 500 error every time I try to log in. The only way to get rid of the 500 error is to clear the chache (so its horribly broken somehow). The error generated in the log whenever I try to log in is that "ffmpeg is already loaded" (which I am running on the main site and is critical). Is there a way of either repairing my apache install or excluding ffmpeg on the subdomain in the conf or something?

View 2 Replies View Related

Ubuntu Servers :: Cron Job Doesn't Run Without Root

Feb 10, 2010

I am unable to run my cron tab job without root password.I made a little research on the forums and appearantly it should be changed.Must I change "passwd" part with my root password?

View 9 Replies View Related







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