General :: AutoMySQLBackup Weekly Backup Modification?
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
ADVERTISEMENT
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
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
Mar 30, 2010
The tail of my log is the following:
BUT:
So, how is it possible that some process writes to the file but file time modification still remains untouched?
View 2 Replies
View Related
Jun 3, 2011
I Configured LDAP Server on ubuntu Server 10.04 ,(using url ldap) and Client also it's working fine. After that I changed to ssl encryption and create certificate in server side. Now it's not authenticating from server it's shows Incorrect Password, but I can login though terminal if I am root user ,then it not ask any password it's logon to ldap user. After I changed to ldap server to ssl encryption and made one changes in client side uri ldaps://ip-address/ (/etc/ldap.conf).
View 3 Replies
View Related
Jun 21, 2011
I want to know how to modify my desktop panel in ubuntu 11.04. Panel right click is not working for me.
View 4 Replies
View Related
Feb 8, 2010
I have an HP laptop with both Ubuntu 8.04 and Windows Vista installed on it.
The other day I noticed I was running out of space in the main linux partition (the / partition, not the /home partition), so I decided to move some space from the Windows partition and move it to the linux one. I used a GParted Live CD to do that.
My partitions are ordered as follows:
Windows Vista partition (NTFS)
Main linux partition / (ext3)
Linux home partition /hom (ext3)
HP RECOVERY (NTFS - I don't know what it is, it just comes with HP laptops that have Vista on them)
So I shrank partition 1, and then "moved" partition 2 to enlarge it (GParted said everything was alright).
After doing that, I went to my linux and everything seemed to be fine, I'm also quite sure I had access to my Windows partition as always. But today I tried to start my Windows and it just got stuck on the "loading" stage (that screen that says "Microsoft Corporation" and has a green loading bar). So I shut the computer down manually (by holding the power button for a few seconds). After doing that a couple of time, I went to my linux, which worked just fine, but I was not able to go to the Windows partition. You can see how GParted looks now for my computer:[url]
As you can see, the first partition (/dev/sda1), which is supposed to be the Windows partition, is not mounted and the system doesn't seem to be able to read it properly. Here is my attempt to mount it manually:
Code:
Mount is denied because NTFS is marked to be in use. Choose one action:
Choice 1: If you have Windows then disconnect the external devices by clicking on the 'Safely Remove Hardware' icon in the Windows taskbar then shutdown Windows cleanly.
Choice 2: If you don't have Windows then you can use the 'force' option for your own responsibility. For example type on the command line: mount -t ntfs-3g /dev/sda1 /windows/ -o force
Or add the option to the relevant row in the /etc/fstab file: /dev/sda1 /windows/ ntfs-3g force 0 0
View 2 Replies
View Related
Dec 30, 2010
I am trying to find a command which will copy all the files in the folder with extension ".log" which is created one day before the current date. By going through other threads in this forum I found the half solution to this problem
find /mnt/hd -mtime -1 -exec scp {} /mnt/usb ;
This command copying the all the files created one day before(not only *.log) to the /mnt/usb folder. what is the modification required to above command.
View 5 Replies
View Related
Jul 1, 2009
I know there exists a touch command to change the date of the files. However, I want to change the files of a directory and the directory time. Is there a command like -R. Please provide me an example of the command?
View 4 Replies
View Related
Oct 4, 2010
I have a folder with hundreds of .txt files (logs of some java application) that I have to merge in to one single .txt file. This application produces a new log file everyday:
day1: logFriday10September2010.txt
day2: logSaturday11September2010.txt
...
day8: logFriday17September2010.txt
...
and so on...
I could merge the files easily with "cat" and ">>" however, the problem is that I have to do it by taking into account the date (creation or modification) of the file.
If I simple use the cat command the output file will receive for example, all Fridays in a row, then all Saturdays, etc. and in that way I'm not considering the date.
I've searched for the options of the find command, since the files after creation are not modified...I try to use this for example:
$ find . -newer <some old file>
but that lists me all files after that <old file> and not by correct date.
View 5 Replies
View Related
Feb 28, 2011
How can I generate a list of files in a directory [e.g.: "/mnt/hdd/PUB/"] ordered by the files modification time? [in descending order, the oldest modified file is at the lists end]
ls -A -lRt would be great:[URL]
But if a file is changed in a directory it lists the full directory...so the pastebined link isn't good [i don't want a list ordered by "directories", I need a "per file" ordered list]
OS: openwrt..[no perl -> not enough space for it :( + no "stat", or "file" command]
View 3 Replies
View Related
Sep 15, 2009
I am trying to create a backup script that will back up a single folder for a class i am in. I was wandering if I could get some help. If possible I would also like to know how to write a script that can encrypt that same file . I will be putting the back up in my /home/usr/Backup directory. I am not trying to back up my whole system just a single folder. I am using Fedora 11
View 2 Replies
View Related
May 21, 2011
I'm just setting up a partition on a seperate HDD in my system. I plan to use the partition to backup the important files on my main HDD (to guard against HD crash).
The question I have is about where would be the typical location to auto mount this partition? Which would it be normal to go for:
1. /backup/
2. /media/backup/
3. /mnt/backup/
4. /home/chris/backup/
View 7 Replies
View Related
Sep 13, 2010
Can some one give me a sample of a crontab for backing a directory please, System is Ubuntu 9.04Quote:
#!/bin/bash
# this file is an automated backup script, backup.sh.
# this backs up my domain site.
[code]....
View 7 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
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
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
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
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
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
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
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
Oct 29, 2010
I'd like to change a files modification date "only" without changing the time. I'm aware of the 'touch' command but is seems like it only allows changing both the date and time, and not one of them. Any ideas on an easy way to change a file's modification date without also changing its time? (I have a long list of files and thus would like to run one to command to change them all)Example: Change a file's (month) timestamp from "2010-09-23 11:59:23" to "2010-10-23 11:59:23"Background: I accidentally set the wrong month on my camera and ended up with all photos having a modification timestamp with the wrong month.
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
May 9, 2010
I found the following command to remap my faulty 'g' key to some special function key available in thinkpad R61 keyboard.
xmodmap -e "keycode 167 = g G Arabic_lam 8"
add it run on X startup ?
View 2 Replies
View Related
Apr 26, 2011
I have embedded linux (apm distributive). I modify /etc/hosts file and that changes not affected.
What could be the problem?
Example
/etc/hosts
127.0.0.1 localhost
127.0.0.1 hana-009
ping hana-009
ping: bad address 'hana-009'
View 7 Replies
View Related
Mar 5, 2010
I don't think there is a way of doing this with date or clock commands. But maybe they are writing to some file and I can take a look at the file's modification time. dmesg and /var/log/messages show nothing relevant.
View 1 Replies
View Related
Nov 25, 2010
The reason why I don't wanna recompile the kernel is cause during upgrades the changes will be lost.Is there an alternative way (setting default opts for grub, initrd generation config)?If it's not possible how do I get the knoppix progress bar?
View 3 Replies
View Related
Jan 11, 2010
i have xp and ubuntu 9.10 dual boot. format and install xp again, before that i copied all my desktop xp files to my drive f: using ubuntu but drive if is "compress drive to save disk space" threw xp, so when i reinstalled xp every time i click on drive f: this message comes up "this file does not have a program associated with it for performing this action. create an association in the Folder Options control panel", if i enter f: in the address bar it will access f:, but is there a solution for this i mean i am going to be coping files from ubuntu to xp all the time i don't want to mess up another drive.
View 4 Replies
View Related
Mar 17, 2011
I used this command to merge a book I downloaded by chapters into a single file (I'm putting it here so I don't forget : )
Code:
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=book.pdf 0*.pdf
As you know, many (or most?) books number the first pages using roman numbers, so in the pdf the page #1 is actually the logical page #12.
Also, the combined file doesn't have a logical index (section, subsection, etc.) showing in okular or evince.
Since I have many pdfs in similar condition I was wondering if there's a way to change the numbering to make the first "n" pages use logical roman numbers and add a logical index.
View 1 Replies
View Related