Ubuntu :: Called 'backit' - To Back Up Files To A Tarball?

Jul 23, 2010

I have a script - called 'backit' - to back up files to a tarball - listed below (<backup.lst> contains files I want backed up)

#!/bin/bash
# 22/7/2010
# Backup important files
cd ~
tar cvfz .backup/backup.tar.gz -T .backup/backup.lst
cp .backup/backup.tar.gz /media/Archive/.backup

Typing 'Backit' in the shell works very well producing a backup file, <backup.tar.gz>, of 2 298 953 bytes and contains all the correct files. So far, so good! I put a line in crontab - /home/alan/bin/backit

The program runs every hour on the hour and produces the <backup.tar.gz> file. However, this file contains only some of the files and has a size of 76 762 bytes. Using "tar tvf backup.tar.gz" lists some of the files and ends with an error indicating an EOF encountered before the end of file. If the script executes correctly when typed into the shell, why does it not run to completion correctly when run by cron?

View 4 Replies


ADVERTISEMENT

Ubuntu Servers :: Back Up System To A Tarball For Quite A While Now?

Aug 28, 2010

I've been trying to back up my system to a tarball for quite a while now. I recently bought a tape drive, and it works. But I'm having a little bit of trouble getting tar to work--whenever I try to copy the files (either directly to the drive at /dev/st0 or to a tarball), I end up with a "file changed as we read it" error, and tar quits before the archive is done. Is there some way I can either prevent this from happening and/or tell tar to just skip that file and keep the job going?

Code:
$ cd /home
$ sudo tar -czf /dev/st0 soren {soren being my home directory, /dev/st0 the tape drive}
[sudo] password for soren:
tar: soren/.gvfs: Cannot stat: Permission denied
tar: soren/.local/share/Trash/files/From Removable Media/16GB Flash Drive Dump/Cliffs of Incognita/Cliffs of Incognita Music/Audio/Stereo 01_01.wav: File shrank by 7289884 bytes; padding with zeros

[Code]...

View 6 Replies View Related

Programming :: Destructor Called On Objects In Deque Without It Being Called Explicitly

Jul 13, 2011

I feel there's a bit of a misunderstanding going on between C++ and me...My problem is that I have a deque of pointers to a class, and create objects then add them to the deque in a for loop. However, the destructor is called on the object as soon as the loop quits.

Code:

This prints:

Code:

Now, if I change the deque from deque<Test*> to deque<Test> then it works fine - I get:

Code:

However, I can't do this with my actual code, because I am creating a deque of pointers to an abstract class, so it won't let me instantiate the class. (This is all so that I can take advantage of polymorphism, and call functions on a set of similar objects without worrying what type of object I'm dealing with).

So, I suppose my question is: what is the correct way to create that deque of pointers to the abstract class? I don't seem to be barking up the right tree currently.

View 4 Replies View Related

General :: Noticed There Was Two Files Called Passwd?

Jun 18, 2010

I was looking around the files in /etc/ to see what they were and what they said, then I noticed there was two files called passwd, which confused me a lot for a second then I noticed one of them was actually passwd-.I compared them and they only differed by one line:
< games:36:35:added by portage for gemrb:/usr/games:/bin/bash, which was in passwd but not passwd-.Should these files both exist? If yes, why, what does having both do? If no, then its safe to say I can just delete passwd-

View 2 Replies View Related

General :: Exactly Which Files Are Called When I Login Into Server ?

May 11, 2011

Exactly what sequence of files are called as in the .my_profile,.profile,.vimrc,.vim. These are few files that I are there on the server. I want to know which file is called first and what sequence. Also can you point me to some links that tell exactly what are these files for.

View 1 Replies View Related

Programming :: What Are The Series Of Files That Are Called When A User Make Copy Operation From Usb Mass Storage To Hard Disk

Mar 20, 2010

what are the series of files that are called when a user make copy operation from usb mass storage to hard disk?i have reached the code of the usb mass storage in linux kernel 2.6.33 and i want the exact code the make the copy how can i do that?

View 2 Replies View Related

General :: Back The Files Used Since Last Back Up?

Oct 24, 2010

I,m using Ubuntu 10.10 with Gimp. Ive got a lot of photos etc and need to back these up. Can I anyone suggest a good backup solution which does not require e to keep copying the same files? IE: Once the files are backed up I only want to back the files used since last back up?

View 11 Replies View Related

Ubuntu :: Files Dissapeard / Get Them Back?

Sep 28, 2010

I went to open a file today and noticed it wasn't there. After looking around i noticed most of my recent documents weren't there. They still show up in my recent documents bar, it just says they don't exist when i try to run them.

Any ideas of how this happened or how to get them back.

View 2 Replies View Related

Ubuntu :: Restore Certain Files In The Back Up?

May 22, 2011

I just backup my files. During restoration, there's a hash mismatch report. What I want to know is that, is there a way to restore certain files in the back up?
or is there are way to restore files by volume?

View 1 Replies View Related

Ubuntu :: How To Build Driver Tarball

Apr 4, 2010

my dads decided to try out ubuntu on his pc, so far everythings up and running smoothly. i am trying to get the video capture card working with tvtime. I have ran "lspci" in the terminal which has detected the following.

00:00.0 Host bridge: Intel Corporation 82875P/E7210 Memory Controller Hub (rev 02)
00:01.0 PCI bridge: Intel Corporation 82875P Processor to AGP Controller (rev 02)
00:03.0 PCI bridge: Intel Corporation 82875P/E7210 Processor to PCI to CSA Bridge (rev 02)

[code]....

I get as far as "make KDIR=/path/to/kernel/source/tree" and got lost, i am running ubuntu 9.10. What do i put where =KDIR is?

View 3 Replies View Related

Ubuntu :: MD5 Checksum Tarball Contents?

Jul 22, 2011

I have a large tarball which is bz2 compressed, and I would like to get a md5 sum of the files contained in it, as I have a separate directory on another server containing what I think are the same files. I want to check to see if the tarballs files are the same as the uncompressed files on the remote server. The files are big 10gb+ so I was wondering if there was a quick way without having to uncompress them all and then md5 them.

View 4 Replies View Related

Ubuntu :: Moving My Files Back / Says Have No Permission

Jun 19, 2010

from several problems with ubuntu/linux distros, just to have the compuer with main windows OS, Ubuntu as a second and backup and puppy too after a week of madness codes sudos gedits installing reinstalling 2 3 may be 7 times.the system is now quite stable (i had to erase the lucid lynx because nobody was able to help me with the problem of the missing panels. ill have to wait for a fix..

now i have a fresh install of 8.04 (i had to uninstall it because i move partitions ad grub wents down, i tried EVERYTHING and nothing but reinstalling it)i used puppy linux to extract my files (home folder) and save it int a new ext3 partition, then when this ubuntu8.04 was OK, i tried to move my files back. i tried to doit from ubuntu, and i saw a little padlock on the folder, i tryed to move it, and i cant, then i restart to tryit form puppy, i was able to doit from puppy, then i restart again back to ubuntu, now with the folder in ubuntu partition i now have to put each file/folder where it was supposed to be, but again i saw some older with the padlock icon and with the same problem, that i can't move it because i have no permission. i tryed to find some help before opening this thread but all i want was to open a gksudo nautilus on terminal, but that doesnt fix anything, because that open a wibdows and i only can move "locked" files withing that folder, and those are my files i need to move it all the time, i can't open a gksudo nautilus every time i want to move one of my files.

View 4 Replies View Related

Ubuntu :: Dropbox Lost A Lot Of Files / What To Get Them Back?

Apr 23, 2011

I had everything backed up so it is no great disaster, but drop box lost a lot of my files. Some of the folders with missing files now have thumbs.db in them, but when you go to the dropbox site, you don't even see that.

I had thought about using dropbox as my main backup solution. That would be a big mistake.

View 3 Replies View Related

Ubuntu :: Use Cpio Command For Back Up Files?

Feb 14, 2011

I want to use cpio command for back up my files. but I cant understand what's the meaning of -p in this command. pass through?

View 2 Replies View Related

Ubuntu :: Use 9.10 To Access All Windows Files And Back Them Up

Nov 30, 2010

1) Can I use the LiveCD to access my files stored in Windows? (The attached screenshot shows my Computer.)

2) If so, can I backup the files to DVD using CDDVD Creator, which comes with Ubuntu? If not, what must I do to accomplish these 2 things if I install Ubuntu?

View 9 Replies View Related

Fedora :: How To Get D Rpm Or Tarball?

Mar 1, 2010

Read about Moksha & would love to install it on f12. how do i go about getting d rpm or tarball.

View 1 Replies View Related

General :: Back Up Files To Dvd ?

Aug 17, 2010

I need to save some .c files. The Red Hat Linux 5.5 machine I am on has a DVD multi recorder drive in it. A cdrecord -scanbus gives me "4,0,0 400) 'TSSTcorp' 'DVD+-RW TS-L633C' 'D250' Removable CD-ROM".

When I add "/dev/dvdrw /mnt/dvd-rw iso9660 user,kudzu 0 0" to /etc/fstab and do a mount /mnt/dvd-rw, I get "mount: block device /dvd/dvdrw is write-protected, mounting read-only", "mount: wrong fs type, bad option, bad superblock on /dev/dvdrw, missing codepage or other error".

I go about this another way? All I need to do is save some source files to the dvd and restore them on another machine.

View 4 Replies View Related

General :: Vim - Getting Back And Forth Between Two Files ?

Dec 15, 2010

=I do 'vim foo1.txt foo2.txt'. How do I switch from one file to the other?

View 10 Replies View Related

Ubuntu Installation :: 7.04 To 7.10 Cannot Manually Download The Tarball?

Apr 9, 2010

i am working off of this link https://help.ubuntu.com/community/EOLUpgrades/Feisty and when i try to follow the instructions below "download tarball manually" i get this. chown: cannot access '/tmp/tmpaIgInN' : No such file or directory

View 9 Replies View Related

Ubuntu :: Where To Download Bluecurve Debian Tarball?

Jul 10, 2010

Is there any other site where I can download the Bluecurve Debian Tarball? When I try to download from the Freshmeat site it gives me a 404 not found. I search the site, and nothing. Can Anyone Help Please?

View 5 Replies View Related

Ubuntu :: Put Back Wiped Window's Files To C Drive?

Aug 3, 2010

I accidentally wiped my mounted c drive with rm /media/MY_C_DRIVE/ -r (The actual path is /media/51FAEE1F4B26FD12/ - that's why I wasn't aware of it). After 3 seconds I realized that I just did something terribly wrong. I hit Ctrl+C to stop but it was too late. The important system files were gone and I couldn't boot into windows. So far, I have tried to recover the files with photorec. I could recover about 68,000 files from that c drive but the names are f000001.exe, f000002.txt, f000003.jpg,. I don't know what these files are and where to put them back. Is there any way to recover these system files?

View 5 Replies View Related

General :: How To Install A Tarball

Feb 23, 2011

how to install a tar.gz file in Ubuntu. I just reinstalled Ubuntu from scratch, so I don't have any additional software.

View 5 Replies View Related

Fedora :: Files Moving Themselves Back Again?

Jun 11, 2011

F15 Gnome edition. I am trying to move files, no big deal, except they keep moving themselves back again about 4-5 seconds later. This happens in nautilus, gnome-commander, or even at the command line. See the following output. The volume is NTFS, but I have ntfs-3g installed, and i've never had this problem before with NTFS volumes.

Code:
[root@kermitfed store]# ls
animalstore Cymande Groundation Mutiny

[code]...

View 5 Replies View Related

OpenSUSE Network :: How To Back Up Files From 11.1

Jan 20, 2010

I am using opensuse11.1 .i want take take backup of files at scheduled time into my remote system .

View 1 Replies View Related

Ubuntu Installation :: No ./configure Command When Trying To Install Tarball?

Apr 26, 2010

I've read a few other threads about installing tarballs and just about all of them mention running the ./configure script. BTW, I'm working on a machine without internet connection and I'm using karmic. I successfully extracted the contents of the tarball and a directory of those contents was created. I navigated into that directory and tried "sudo ./configure" as per some instructions I found on the net, but the result was "bash:./configure: no such file or directory".

I get this same error message when I try "./configure --help | less" Is "./configure" something that is meant to come as part of the OS or do I need to install that separately too!?! when I try to create a keyboard short cut for opening a terminal by using the "keyboard shortcuts" option in system > preferences the setting lists it as "disabled". Is there some way for enabling? I know how to get to a complete screen terminal by using ctrl+alt+f2 but I also want a shortcut for other terminal box which is accessible via the applications area.

View 1 Replies View Related

Ubuntu Security :: PGP - Make The Tarball Available For Other Users To Download

Dec 20, 2010

Got PGP 6.5.8 for Linux working with Ubuntu 10.10. It involved converting two .rpm files to .deb with the alien utility and then installing by simply double clicking on the .deb files in the file browser invoking the Ubuntu Software Manager. I put the two .deb files in a tarball (tar.gz) and would like suggestions as to how to make the tarball available for other Ubuntu users to download.

View 3 Replies View Related

Ubuntu :: Can't Find The Tarball For The GNOME Source Code?

Jun 15, 2011

I want to build my own GNOME. The problem I have is that I cannot find the tarball for the GNOME source code. Another thing I've read on their website is that the way to build it is not the conventional './configure, make, make install', and that it has to be done using a multi-phase process. Is this correct?

View 2 Replies View Related

Ubuntu :: Files Lost When Moved Across Partitions Directly / Get That Back?

Jan 25, 2011

I dual boot Windows and Ubuntu dual on my computer. I made the big mistake of moving a bunch of files directly from the ubuntu partition and now all those files are gone. How can I get them back?

View 1 Replies View Related

Ubuntu :: Persistant Storage Usb Stick Corrupted - Files Back ?

May 20, 2011

I had a usb stick running ubuntu. A coworker used this install to go around some of my companies security measures, and I was told to hold on to the usb stick in question. I copied all the files onto another usb stick in case something went wrong with the first one.

The problem: The first usb stick that was bootable has become corrupted. I still have the files from the disc, but they're not on the bootable stick.

Can i just use something like unetbootin, reinstall ubuntu, then drag all the files over?

View 2 Replies View Related

Debian :: Packaging Tarball Which Already Has A Directory?

Apr 4, 2011

I have an upstream source tarball which, by coincidence, already contains a directory named "debian", but which has nothing to do with the "debian" directory for packaging. Assume also that renaming this directory would be difficult, for example because many other parts of the code would need to be modified. On an rpm based system, this poses no problem to the packager, since the rpm build process is driven by an external spec file and never has to modify the original source. What would be the best way to package this on a debian system? Is it absolutely necessary to rename the original "debian" directory? Or can I make the dpkg build tools operate out of a different directory?

View 5 Replies View Related







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