Ubuntu :: Strategy To Schedule Rsnapshot If Pc Is Not Always On?
Jun 20, 2010
I just did my first rsnapshot backup of my /home/ to an external harddisk. When I am not at my computer for a couple of hours, I always shut it down. Therefore, there are no predictable hours of the day where I know that my computer is running. So, how should I schedule/crontab my rotating rsnapshot backups?
Is anyone using rsnapshot in combination with a schedule which is not based on exact times but rather on the time the computer is running?
Right, just a quick question about rsnapshot over sshfs and encfs. I've set up an encfs filesystem, and when mounted on the remote machine remotely:
Code: touch foo.bar Code: cp -al foo.bar foo.car Works as one would expect it to.
The same is true on the local machine (The EncFS has External IV chaining disabled). However, when the remote dir is sshfs mounted on my computer here, and then encfs'd to a decrypt mount on my computer, I can move files to it, and they go over the network and get encrypted, however:
Code: cp -al <file> <file> No longer works, I get 'not implemented' errors...
I thought since I don't have External IV chaining this shouldn't be an issue - I've tried without any of the file chaining options, again to no effect. All work remotely, or with both locally, but not over sshfs. Is this a quirk of sshfs?
I have a server with a postgres database, apache and a custom java application.
I am trying to run rsnapshot to backup /home /etc and /var folders.
But I am running into issues with rsnapshot and permissions. More specifically these kind of errors,
Code:
I look at the permissions on these files with ls -la, I get
Code:
The owner of the files is root and postgres users. I am using passwordless login to connect to server as user XYZ. XYZ has root access to the server and to the database.
These files are all over the place. Some in /etc and some in /var/lib for instance. How can I best copy these remaining files.
I am trying to run rsnapshot from cron via root's crontab file (crontab -e). If I run rsnapshot from the command line with sudo it works perfectly, however, if I run it from cron:
Code: * * * * * /usr/bin/rsnapshot hourly >/tmp/crontab.out 2>/tmp/crontab.err This does not work. The crontab.err file shows:
I am backing up my debian server with rsnapshot which actually uses rsync to perform the backup. The backups are located in an external storage of size 1.4T .
[code]....
I tried to understand what this error message means and i founde that error code 12 : 12 Error in rsync protocol data stream I understand that when rsync find that a file on the target was changed , it will send only the block/blocks that contain the changes and in the destination rsync will create new file and not update the old one (new inod...) . I want to know if this error i get is due to full disk or perhaps it is some other factor
Rsnapshot is a software written in Perl to make backup of local and remote file system. The well proven rsync is behind this utility. rsnapshot does not need root user intervention to restore the data of a normal user. It does not take much space in your Backup server. It can be easily automated (scheduled) to make life easier. Just setup once and forget it configuration. Basically it takes snapshot of file system (or a part of) in regular interval such as hourly, daily, weekly and monthly.
This can be configured easily through a simple text based configuration file. The above task can be setup in a few easy steps in a few minutes. Two major tasks are configuring rsnapshot and openssh automatic login. To make the backup automatically, we need to automate the remote login in a secured way. This can be done through openssh tools. This scenario depicts backup of desktop (assuming that IP address is 192.168.0.100) data to a backup server. My desktop runs on Ubuntu 10.04 and backup server runs on Debian Squeeze. [URL]
I have a machine on my network and that machine is a mass storage server that I will eventually use as a media server (to stream movies, videoclips and music on my home theater system). I use slackware 13 on ALL of my machines.
I am trying to automate the backup of the "/home" folder of my laptop onto the mass storage server. I currently use rsnapshot and it works great, but I would like to automate the whole process, even if I am not home or in front of my machines...
Here's what I imagined (in pseudo code):
1) Poll if server is active (up); 1.1) If not: 1.1.1) Wake up the server (WOL); 1.1.2) Wait for the server to boot; 1.1.3) Confirm the server has made it to the login prompt (normal boot); 1.1.3.1) If not, send an alarm via email;
Was running 10.10 64-bit on Thinkpad X201. I mistakenly clicked on upgrade this morning (really meant to just do a plain old update)... I tried to stop the process, but nothing that I did could get me out of the upgrade loop... so I eventually was forced to go ahead. Machine boots into 11.04; however, keyboard and mouse doesn't work. I have an external keyboard/mouse combo and that will intermittently work, but questionable. I was able to turnoff Unity; however, Classic doesn't seem to work with either external keyboard or laptop builtin.
My root and home are on separate partitions. I have a very fresh copy of home backed up on a separate drive. I don't have a recent backup of root. If I could get Natty working with Classic (including minimize/maximize) I'd be OK...I'd be also OK with going back to 10.10 if I could do it without too much pain. Meanwhile, I'm using another machine with Windows 7 so that I can at least do some work and come back to resurrecting my machine after I've had a bit of a timeout..
I want to get Ubuntu blazing fast and I started out by changing the swappiness to just 10 and got a huge performance spike. I was very happy with that. Then I used rcconf and GNOME's startup applications GUI and edited out quite a bit but still have a somewhat slow boot. Well, the next thing I thought I should do is edit the inittab and rid my self of some surely unneeded services. Well, according to this website, Ubuntu doesn't use this inittab, but etc/event.d doesn't exist either! Well I looked in /etc for something related to init, and I believe I have found where these services are called upon. /etc/init.d and /etc/init.
Now the files contain many scripts for different services so I was wondering how to edit these to turn them off to optimize my boot! Do I comment out the unneeded ones? My next question is what strategy should I use as I edit these? I think I can get rid of "ssh" and "cups" and "samba" since I don't use these. Can someone point me to a nice list of services and their functions? I just want to optimize Ubuntu as much as possible to not only have a fast computer for my self and family to use, but to impress Windows users with the speed that can be obtained from Linux!
I'm setting up a Fedora 11 server for the company of one of my friends. So far so good. But now he has asked me to setup access restrictions to folders through samba. Now I'm quite familiar with user access policies, even though I'm quite new to the GNU/Linux world. What I want to know is : what is the best way to give and remove, on the go, rwx access for a specific user to a certain folder in a linux system? Can I create groups for each folders, whose members will have the given permissions? Or do I have to create users for each folder and add to their group the user witch i want to give privilege to?
I'm planning to partition a new hard drive to dual-boot Mint+Mepis. I've read partitioning tutorials and posts, and want to check my understanding--I'd appreciate input from an experienced person.For 500GB hard drive, dual-boot Mint+Mepis:
--Mint: / root partition for OS; /home partition for ease of upgrading --Mepis: same as Mint = four partitions
And: /swap partition to be shared between Mint+Mepis /shared partition for shared data = two partitions
Total = six partitions
Since four primary partitions are allowed, I should use three primary partitions and one extended partition containing three logical partitions.Is that correct?If so, what should go where? I assume there's an optimal strategy--Should each /root of Mint+Mepis go in a primary? What should go in the other primary, and in the three logicals? Or maybe I don't need three primaries?--use two primaries and four logicals?
I compiled and install a binary source using "make" and "make install", but after I done that I think it's kind a messy not to build it in package. Therefore I tried to uninstall it and make a package out of it.
Questions:
1. How do I uninstall a compiled binary from "make install"? Some suggested to do it manually. How do I do it cleanly so that I won't miss any spot?
2. I understand that makepkg is used to build a package. I have the binary compressed in tar.gz format and have some difficulties to understand the man page for makepkg since I'm not familiar with "make". How do I build it using makepkg, what is the proper step?
I have a rock solid server running CentOS 5.3 (probably 5.4 soon enough). Basic LAMP box with a few tweaks thrown in. Everything is running perfectly, with one problem - the drive is too small (I project it filling up to dangerous levels in 6-8 months). So, what I'm looking to do is basically clone the drive, store the image, pull the current drive and replace with a bigger drive (same number of heads and cylinders though), and install the image.
What I did do once, a million years ago, is put the new drive as a slave on the same IDE cable, and use dd (working from a live CD of the distro) to copy from the master (smaller) to slave (larger). Then, yank the smaller, change jumper on bigger drive from slave to master, and away I go. Next step as I recall was using gparted to get access to all the space on the new, bigger drive.
Is this more less still a reasonable way to go? I recall the issue was making sure the old smaller and new larger drive had the same number of heads/cylinders (although I don't remember exactly why).
[URL]. I am installing the above later this week with the intent of it being my OS drive.
Potential Partition Scheme -> Boot 100 M Swap 8 Gig / -> Balance /home --> Separate Drive
Does this make sense for a SSD drive. Not sure if I should place the swap on the SSD drive or if there are any issues around any paticular partition set up. I am looking at installing either -> LM 9 / Ultimate Edition 2.8 / Debian / Ubuntu 10.1.
Having just executed a 11.2 to 11.3 upgrade (KDE), in which I preserved /home from 11.2 to preserve my data and settings, I now wonder if there is a "Best Practice" on how to setup the environment, anticipating future upgrades.Currently, for applications I frequently use and wish to launch from the desktop, I open /usr/share/applications (using Dolphin) and drag the application to my Desktop Folder, choosing the "Copy To:" option.After the recent update, my Desktop Folder files remain those from 11.2 or earlier.It seems now a better practice would be to populate the Desktop Folder with links back to /usr/share/ applications, so that changes would be implemented the the link to a newer file. That would be easily implemented by choosing the "Link To:" option when dragging.
I want to schedule a Java program to run at a certain time, which will open a GUI progress monitor while it runs, and then terminate when it's done. I can execute it fine from the command line, but I it doesn't seem to work when I schedule it with crontab. In fact, I can't make any gui by scheduling it, not even something like gedit or firefox.
I know it's pretty rare that someone would want to do this, but is there any way to schedule a GUI app?
How to Schedule auto shutdown in Ubuntu? I am a newbie. Last night I have some downloads in progress while at the same time I really wanted to go asleep. So I wondered if there's a way to schedule auto shutdown the system after a set period of time. I heared its possible using command line but dont know the usage.
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?.
I'm trying to schedule a reboot ,using the 'at' command. Normally to reboot I have to be 'root'. I tried using sudo to start 'at',to no avail. How would I type the command ,using at, to reboot?
lets start with mentioning that I am a very satisfied user of a fileserver with a OpenSuSe 11.1 environment, implemented in october-november 2009. The server has the following charateristics: Hardware Core AMD Semprom LE-1250 on Gigabyte GA-MA74GM-S2H Mobo
1 GB memory 2,5 inch 360 GB systemdisk 3x 1TB data disks in RAID 5 configuration Functionality used Software raid (RAID 5)
I'm working on a home project to build a VM server. I'm have older hardware (IBM x306) and my processor doesn't have built-in virtualization support, so I'm going with VirtualBox. That seems to give me the most flexibility with supported guest OS's on my P4 processor. I'm using CentOS 5.4 installed on a software RAID1 array and I ran into an issue where every time I try to create a fixed-size virtual hard drive my whole server locks up. I think VirtualBox may have a problem managing virtual hard drives on a software RAID (unconfirmed).Anyway my idea is to create 2 mirrored volumes using LVM to see if that works out any better. I started reading up on it and found this article. My server only has 2 hard drive bays (it's 1U) and the article says that 3 physical disks are really necessary for true fault tolerance.
i am using ubuntu 9.10.i connect to net through the gnome netwok manager via a mobile broadband connection. can anyone suggest any commands or tools with the help of which i can disconnect the net at a preset time or after a fixed interval has expired. i know that by executing "poff" command in terminal i can disconnect the connection, but i want the same to happen automatically without any kind of user intervention at a scheduled time.
I'm trying to use cron to schedule a script I wrote.in the terminal I'm typing sudo cronbut i get this message back.cron: can't lock /var/run/crond.pid, otherpid may be 3332: Resource temporarily unavailablewhat's going on here? how can I schedule my script to run?