Ubuntu :: Anacron Not Running Weekly Or Monthly Backup Script?
Aug 16, 2011
I have been trying to set up PC up to do automatic backups using a script I developed and anacron. The script runs perfectly when I run it manually in bash, but won't run through anacron. I followed all the advice on CronHowTo etc etc and are at a loss for why this is not happening. Here is my anacron tab (new bits in blue):
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# These replace cron's entries
1 5 cron.daily nice run-parts --report /etc/cron.daily
7 10 cron.weekly nice run-parts --report /etc/cron.weekly
[Code]...
View 1 Replies
ADVERTISEMENT
May 4, 2011
I'm using AutoMySQLBackup [URL] script to backup mysql db from several server.I need little help from you who is guru in scripting. I would like to take weekly backup after every 1 week and not every week. i.e. on every 14 days. This is the weekly backup portion of the script:
Code:
# Weekly Backup
if [ ${DNOW} = ${DOWEEKLY} ]; then
${ECHO} Weekly Backup of Database ( ${DB} )
${ECHO}
[code]....
View 4 Replies
View Related
Dec 8, 2010
I have two shell scripts, one has to run after the other has finished running.I know that in cron.monthly they run in alphabetical order, but does each one run after the other has completed, or is it possible that the first may still be processing when the second is run?
View 1 Replies
View Related
Aug 18, 2009
I'm on Comcast (insert vomit sound here) and they have a 250GB monthly limit. I don't think I'm remotely close to this on a normal month and want to figure out if I could perhaps squeak by with the 5GB limit imposed by Verizon's 3G wireless broadband.
I'm ideally looking for a quick easy-to-use GUI application, rather than something that's done via the command line.
I thought perhaps I could look in my Account and find a nice "You've used X percent of 250 GB thus far" window. Then I called, but Comcast couldn't tell me. They just borked me off to some Windoze application 3rd party which I'm supposed to install.
I run Skype and occasionally download Fedora iso images and so on. Rarely am I doing more than surfing the web, chatting, and sending emails. I doubt I'm even close to 250GBs but I'm guessing that 5GB will end up being problematic.
Are there any programs that will keep track of how much bandwidth I'm using? It'd be great to have an application that runs there in the taskbar and just shows a graph of how much I've used thus far.
View 2 Replies
View Related
May 10, 2011
Well I'm totally frustrated. I have been trying to figure out how to use anacron (schedule tasks). I Googled,Binged,Yahooed, and manpaged.I cannot find how to, at least, start anacron. To use 'cron' I use crontab -e. What do i use to start anacron?.
View 2 Replies
View Related
Oct 15, 2010
I do use a virtualization environment using VirtualBox,Qemu. Many a times I have to format my laptop then in such situations installing again the previous programs and making same changes to the configurations is very painful. Is there some way I can make some sort of backup which I just need to install on my existing system and get all previous things immediately installed without going to install and setting of a lot of other applications and settings.
View 1 Replies
View Related
Nov 19, 2010
I'm trying to understand the role of the at command. Does cron use at to run its jobs? Or is at, and batch for that matter, a separate cue that is only stored while the computer is on. As for anacron, anacron on runs once a day and is geared for a computer that is turned of frequently, as opposed to a server when it is on all the time. I've already man'ed these commands, and googled. I'm just trying to understand more how they work.
View 2 Replies
View Related
Dec 7, 2010
My sisters machine is running ubuntu and having just logged in as root I noticed I had some emails from anacron. These all read:
[Code]...
View 6 Replies
View Related
Aug 16, 2009
In F10 the boot sequence hangs just after loading anacron. I booted with interactive mode and after saying 'yes' to starting anacron I'm prompted to start 'local'. When I say yes, my system hangs.
I've seen quite a few posts regarding very similar issues that people were having. None of them seem to have a clear cut solution.
Some posts mentioned about the wrong video drivers, however I've been using the same video drivers for a couple of months now and never experienced this problem.
I looked at /etc/rc.local and all it has in it is 'touch /var/lock/sybsys/local'
I also looked at the file above and there is nothing in it.
Any ideas/solutions? Everything was working just fine the other day. so I'm completely baffled.
View 14 Replies
View Related
Jan 31, 2010
How to backup incremental running debian server using rsnapshot?
View 2 Replies
View Related
Jan 21, 2011
I'm trying to find out how to change the time at which daily events run per Anacron. Has anyone done that before?
View 1 Replies
View Related
Apr 6, 2010
I just turn of the services, but there is something wrong about it...How to locate the problem? Maybe its some script in /etc/cron.*? Ive tried running them "manually" but nothing special happened. Is there a log for cron-scripts (or what are they callled)?The kernel panic says something like this: "Kernel panic not syncing, fatal exception in interupt, iwl4965 - irq_tasklet".So it seems to be in the iwl4965 driver, but also strange as it is connected to ana/cron.
It hapens very unregularly sometimes just a minute after starting ana/cron, sometimes it can go longer. It wasnt always like this, first it just happened when I played Warcraft on wine and i thought that was the cause (it might not even be the same problem, but i think so), but then it happened at other times also, so I fiddeled around with the startup services and found that disabling cron and anacron (its about the same thing I figure) keeps the trouble away. Well, its not a big problem, but I just wanted to see what the problem is, Also, is the cron-script doing anything of importance
View 2 Replies
View Related
Nov 30, 2010
I let the update manager complete the weekly update and after restarting, Skype will not load. I attempted to troubleshooting Skype found in the Ubuntu documentation, but it does not appear valid for Ubuntu 10.10 amd-64. [URL] fails to start
View 3 Replies
View Related
Feb 6, 2009
After a few days of wrestling the xorg.conf file and the akmods/kmod apps, finally have it running properly with a dual display/one graphic card setup BUT only from init 3 and then startx. Trying with init 5 shows a segmentation fault right after recognizing the kmod driver but the sequence keeps running until it after it hits the anacron OK portion. This occurs with an NVIDIA 6800 XT which is covered by the 180.25 driver. Other forum Q&A suggests the wrong driver but NVIDIA recommends this one.
View 3 Replies
View Related
Apr 11, 2010
I'm trying to get my backup script to run every week, but as a normal user, and not as root as it is done when the script is placed in /etc/cron.weekly. Anacron fits my needs in the sense that it doesn't require my computer to always be on, as opposed to cron, and will just run my script when it can, but at the most each week. Cron fits my needs in the sense that I can run the script as the user I am logged in as. The particular script backs up my home directory with rdiff-backup, and it is very convenient that I am the owner of that backup, since when root performs the backup, I am unable to browse my own backup files and must use "sudo" to do this.
Is there a way to let me use the feature of anacron that allows my computer to not always be on, but still get a weekly execution, and also run the script as a normal (non-root) user?
View 2 Replies
View Related
Feb 21, 2011
I have three raid volumes, md0, md1, and md2. The weekly raid-check cron always causes md0 and md2 to get checked but never md1.
/etc/cron.weekly/99-raid-check
Volumes md0 and md1 are on the same 8 disks. Volume md0 is a small raid1 across all 8 disks for boot and md1 is a raid5 that occupies the rest of those 8 disks. Volume md2 is a raid5 on a separate set of 6 drives. When I check /var/log/messages* I see that every Sunday md0 and md2 get checked but md1 is never checked. However, when I run 99-raid-check manually, all three volumes get checked. There is clearly something different between how crond runs that script and how I run it, but I can't imagine what that would be.
View 2 Replies
View Related
Nov 4, 2010
I have setup a cluster.Which is basically a few Virtual Machines running and the applications running in them which are accessible on internet. He has asked me to send him a weekly report of this work. I am sys admin guy who understands ssh,telnet,ftp,tftp,TCP I am not able to understand what should I write in report.Because all the servers are perfectly running and applications are also running on top of them and I am done with this.So basically from my part I do not have any ssh or ftp to write in a report like this.Can some one give me a link if there is some sample report that I should send.I am not able to understand what do I need to Google for the same.
View 8 Replies
View Related
Jul 25, 2011
how can I stop resyncing permenently & how can I check whether the normal sata HDDs can support RAID before/after buying HDDs. Because on every saturday or sunday resync is starting itself even there is no entry about resncing in crontab. But if I run "cat /proc/mdstat" it is showing RAID1 is perfect. see the below output
#cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 hdb1[1] hda1[0]
513984 blocks [2/2] [UU]
[code]....
View 5 Replies
View Related
Sep 15, 2010
I have cronjob that uses rsync to back up to a remote directory every hour. how do I set this rsync up so that if initial process is running already, it prevents running same rsync command and checks again in next hour until the process is finished/terminated?
View 5 Replies
View Related
May 3, 2011
A question that I've asked myself (and google) many times but never got to an answer.Scenario:ServerA) postfix Primary MXServerB) postfix Backup MXAccording to the rfc a source mailserver can decide where to send email e.g.send an email to backup even is primary is reachable up and running.So my questions are: 1) how do I (live I mean) replicate messages arrived on any server to the other?2) How do I synchronise sent messages, message deletion, folder creation/deletion.Imapsync goes half way towards the solution but it needs to be run manually one off and you must specify source and destination.All I wanted really is a user to be able to use either server without having to worry about primary/secondary or what so ever.
View 4 Replies
View Related
Jan 14, 2010
I need to backup my active production servers (yeah it's too late now) with image cloning application that were running RHEL3-5. The problem is I need to run it remotely from my office. Most of the software I found either need to use bootable cd or need to unmount my partitions which is I wasn't allowed to since it's a production servers. I also tried dd but it consume too much time, sector by sector cloning and empty disk space also included so the file created also big in size.
View 4 Replies
View Related
Nov 23, 2010
What would happen if I place more than one shell script in the cron.weekly directory. would they run at the same time?
View 1 Replies
View Related
Mar 18, 2010
I have an Ubuntu server, and I have a special script on logrotate.d to rotate the samba_audit logs:
/var/log/auditsamba/auditoria.log {
weekly
rotate 12
missingok
[code]....
View 14 Replies
View Related
Feb 18, 2009
I recently purchased a Quadro FX 4800 and tried to install it on Fedora 10. During the installation, Fedora didn't recognize my new graphics card and began installing the OS in text mode. I stopped the installation and tried to start over, this time I passed the following command: linux resolution=1024x768. I then proceeded with the installation, and again, I was posed with a text mode installation. I continued with the text mode install and when Fedora was done installing, I rebooted and system just locked up.
At this point I was frustrated, so I reinstalled my old 8800 graphics card and started a new install with something that worked in the past. When the install was done, I loaded the latest NVIDIA drivers and the rebooted. I reinstalled my new graphics card (Quadro FX 4800) then powered up my system. I thought everything was good to go and all of a sudden my system flickered and then locked up during the 'Anacron' testing phase. I then rebooted with the "Ctrl+Alt+Del" hotkeys, but my system always locks up during the 'Anacron' testing sequence. I am aware that the Quadro FX 4800 is a few months old, but how can I get it to work in linux? It has gotten so bad, that I had to resort to using MS Vista.
System specs:
Intel Core Duo Quad Core
4 gigs DDR2
SATA RAID 0
Mobo: 680i SLI
800WATT Power Supply
View 5 Replies
View Related
Jun 15, 2010
this is at the root of the problems I'm about to describe: Whenever I try to upgrade my Debian installation, I have repeated "size mismatch" errors that necessitate restarting the upgrade process. Since I'm using Debian Squeeze there are lots of upgrades to be done every week. Today, for instance, because I've not upgraded for a few weeks I have to download over 300MB of files to complete the upgrade. However, because of the size mismatch problem this download may well turn into something between 1GB and 2GB, as I repeatedly have to re-download files that were successfully downloaded in the last failed upgrade. What with my ISP limiting me to 7GB per month, I'm finding that merely keeping Debian up to date is using up most of my allotted bandwidth.
I've tried setting the Aptitude preferences not to "remove unused packages automatically", and not to "remove obsolete package files after downloading package lists", but for some reason I still find that files I downloaded in the last failed upgrade have to be downloaded again (and again, ...) whether anyone either knows how to avoid the package size mismatch problem (I can't change my ISP, which has a monopoly on providing internet to my area), or alternatively knows how to set Aptitude not to forget the packages it has downloaded successfully during each failed upgrade, thereby allowing me to avoid such a huge bandwidth usage on my frequent upgrades.
View 14 Replies
View Related
Aug 30, 2010
I need address of ftp server that has the latest .iso of Debian testing (weekly build).unfortunately, cdimage.debian.org/cdimage/weekly-builds/ is useless to me as it does NOT support ACTIVE FTP.
View 3 Replies
View Related
Aug 18, 2010
I installed Debian Squeeze-testing weekly build today, with CD1 alone. It took 1 Hour 38 minutes to install and configure on my Pentium 4 2.7 Ghz , 1GB ram HP machine. I have some trouble with the installation. Sometimes the desktop just freezes while moving Icons, or opening Xterm. I cannot use Ctrl-Alt-Backspace, OR Ctrl-Alt-Delete keys. I have to physically reboot. Why doesn't Ctrl-Alt-Backspace work on GNOME? Is there a IRC chat for Debian Help and what applications does one use on GNOME for IRC chat?
View 5 Replies
View Related
Mar 13, 2011
I currently have a centos 4.4 I believe running with a 250GB hard drive. I want to make an image of that hard drive. I have tried removing the drive and connecting it to my windows pc using an adapter that would allow my windows machine run the hard drive as it was a regular external hard drive. Of course windows doesn't reconize that drive since it is linux partitioned. I am thinking that I need to have the hard drive inthe box I am wanting to copy and put in a blank drive in the box that I want to copy to. And boot from a live CD and use cat or dd to copy it. I have seen the commands before bust I am thinking this is the only way. Basically I am wanting to have a duplicate of the drive and build a whole new server that is already all setup.I will just change the host name and assign it another Public facing UP. Is this correct? Oh, and the new server will have different hardware. Might even be AMD or intel different from source or destination.
View 12 Replies
View Related
May 18, 2010
using Back In Time to backup my home directory to a second hdd that is mounted at /media/backupThe trouble is, I can do this using Back In Time (Root), but not using Back In Time without the root option. This is definitely a permissions issue - it can't write to the folder, but when I checked by right clicking on the backup directory and looking at the permission tab, it said I was the owner
View 2 Replies
View Related
May 10, 2011
I install and tested Restore EE Backup server on a test PC with basic configuration and its working fine.
[URL]
The issue i have is where is the location these backup snapshots or files are saving? I want to add a separate Storage to save the backup?
View 1 Replies
View Related