Linux Backup with TAR and Cron Jobs

Поделиться
HTML-код
  • Опубликовано: 11 дек 2024

Комментарии • 228

  • @dansfitnessvlog
    @dansfitnessvlog 7 часов назад

    This guy is amazing. I learned a lot from Eli before I started my journey in the IT industry back in 2017. I have been jobless for about three years now, but I’m about to apply again for an IT staff position. Several companies require qualifications for a better understanding of Linux or more advanced knowledge. It took me about 4-5 hours to finish all of his 9 video tutorials to wakeup and refresh the learnings i had before. Even though the videos are old, they are still very effective. Thanks Eli! the best!

  • @movie_nightmares
    @movie_nightmares 9 лет назад +9

    Eli is the first source of information when I want to learn something new or just review things I have not worked with in a while. He is clear, easy to understand and the material he uses to show you something is easy to get.

  • @gregjachtoma6490
    @gregjachtoma6490 8 лет назад

    Einstein said that any intelligent fool can make things bigger, more complex.
    But it takes a touch of genius and lots of courage to move something in the opposite direction.
    Thank You for this tutorial

  • @songsanams6355
    @songsanams6355 3 года назад

    you are a star after this many years, no one has such a great description

  • @niaei
    @niaei 10 лет назад +6

    Two questions:
    1) How to exclude more than one path?
    Like: I don't want to keep /mnt and /media and /tmp
    2) How to create a backup file for more than one path?
    Like: I want to create an archive file, and I want it to include /usr/share and /bin and /var/www.
    BWT sir, you're awesome.
    Keep do this. :)

    • @oliverwyatt236
      @oliverwyatt236 4 года назад

      tar -xvpzf your_backup.tar.gz --exclude={"/home/*/Downloads/","/home/*/Documents"}

  • @arasonsuresh1042
    @arasonsuresh1042 8 лет назад

    Thank you so much for making Linux so simple to understand. You are the best teacher ever! I watched all the 9 videos from introduction to the end, every class was very easy to understand and I would be glad to watch all your classes. You just earned a subscriber.

  • @mazdysoraya6121
    @mazdysoraya6121 11 лет назад

    what a king you are! That is how things should be explained. I run into many tutorailas that skip points that make people confusing..Thank you

  • @GrantTurnerMusic
    @GrantTurnerMusic 12 лет назад

    Great instruction. Just moved a website to a dedicated server and plan on using this to perform backups. Thanks dude!

  • @MrHav1k
    @MrHav1k 10 лет назад +9

    Eli you have by far the best tutorials on RUclips! I've learned so much from these linux videos and I love how you focus on what matters!

  • @hipman87
    @hipman87 8 лет назад

    I just went through your whole Linux course tonight, massively appreciated, very clearly presented.

  • @elithecomputerguy
    @elithecomputerguy  13 лет назад

    You can backup /
    If you need a bare metal backup you can just use a piece of backup software.

  • @sandhyasingh7356
    @sandhyasingh7356 7 лет назад

    you made my life a lot easier with this video.....keep posting these kind of videos...you are too good in teaching eli

  • @prabeshines
    @prabeshines 11 лет назад

    wOw!!!!!!
    I never thought I would learn Linux this fast.... 2 Days and i know hell lot of things....
    .
    THUMBS UP ELI !!!! U R AWESOME

  • @REDCAES
    @REDCAES 10 лет назад

    Thx Eli you are the bomb!! I've watched about 35 of your videos so far and haven't been disappointed yet, thanks for making it easy to grasp!

  • @rimmiloud
    @rimmiloud 11 лет назад +6

    Excellent Teacher I have seen in my life Since I started the school on 1978

  • @GaryCameron780
    @GaryCameron780 2 года назад

    Watching in 2022. Eleven years later this is still very useful. thank you.

  • @telao492
    @telao492 2 года назад

    I wish I would have found you weeks ago! Thank you for explaining this down to the meaning of each character. Much appreciated!

  • @SwingingInTheHood
    @SwingingInTheHood 3 года назад

    Here we are, some 10 years later, and THIS is still the best way I could find to back up my Linux systems (maintaining permissions and symlinks) to a NFS mounted NAS drive and AWS S3 bucket.

  • @stephenjasonwang
    @stephenjasonwang 12 лет назад +1

    Can't wait for tom to watch this so i'm watching it now... watched your whole Linux class straight and i loved it.. THANKS ALOT!

  • @455rocks
    @455rocks 10 лет назад +8

    Sir,can you please do a video on Shell scripting(Bash and Perl)?

  • @208dharma
    @208dharma 8 лет назад

    Thank you for your efforts to share your knowledge to everyone who wants. These are very helpful me.

  • @vsworld7757
    @vsworld7757 9 лет назад

    Best Video, your narration is too good to keep track of and your recap actually makes it hard to forget! Thank you soo much! Look forward for more videos :)

  • @yanxiang1987
    @yanxiang1987 9 лет назад

    Thanks Eli for your patient and clear class. I learned a lot from you.

  • @calingiurgiu2000
    @calingiurgiu2000 10 лет назад

    God bless you Eli! Your videos are lifesavers! Thank you ! I wish I could replace my current teacher with you.

  • @iliketobathify
    @iliketobathify 7 лет назад

    Nano is an excellent editor for those finding Vim too difficult.

  • @Bubblegan
    @Bubblegan 7 лет назад

    Fantastic tutorial. I am so happy that I found your channel. Keep up the great work.

  • @IvarsRuza
    @IvarsRuza 10 лет назад

    There is lot more to tell about tar. t - option/switch/argument for me is the sugar when I use tar . Width a "t" option/switch/argument You can look inside tar archive :) Also its possible to extract one file after You had a look with a "t" option. About sudo - I belive Eli has configured sudo to be used without a password for certain non authoritative user to operate with system as a root. It's wrong - sudo loses the concept why it was made :) Also using sudo in cron - it's wrong for most of us, in case of Eli - as I said, I believe he has made one non authoritative user to be used without password. Also - sudo - it is not in all Linux flavours / distributions. Eli I would enchant this video course. But!!! Even for me it was great to listen - You are great orator. Good Job.

  • @jimfurman3145
    @jimfurman3145 7 лет назад

    Awesome I was searching for a linux backup program .... but this is so simple ... thanks!

  • @gmc9753
    @gmc9753 12 лет назад

    Linux has a very helpful command called "file". This command can tell you what a file contains based on the contents of the file. It can tell you that a file is a compressed file, tar file, mp3 file, python file, etc. etc. So if you do create a compressed tar file called "Bob", you can identify it years later!

  • @Waldi111979
    @Waldi111979 11 лет назад

    hi Eli, I have an idea for part two of this tutorial - I intend to do backup of my system, so that once it will get corrupt (after update/upgrade), I could go back to previous working Linux before corruption of the system.
    That's something I am missing in this tutorial.
    BTW - your tutorials are amazing! I've seen around 20 to date and they are so easy to understand! thank you for sharing with your knowledge with us publicly. cheers!

  • @FranseFrikandel
    @FranseFrikandel 12 лет назад

    Yes you can, everything you can do with the server can be done with the desktop using the terminal

  • @Rchauhan902
    @Rchauhan902 8 лет назад

    thank you sir for your valuable videos. I learned lots of thing from basic to advance from your tutorials.
    thanks a lot

  • @ernestoearlsalunat3785
    @ernestoearlsalunat3785 7 лет назад

    Awesome job Eli! I had so much fun and boosted my confidence. Cheers!

  • @JamesSamples
    @JamesSamples 3 года назад +1

    LOL, Dang it ELI!!!
    I watched this video trying to remember if its:
    ....--exclude=/mnt.... or
    ....--exclude = /mnt... with spaces
    Eli: "I'm not going to exclude anything, just to make life easier..."
    LOL that was funny

  • @Kreosification
    @Kreosification 12 лет назад

    It depends on what you want to compress. Video/Audio/Image files aren't really cut for compressing. Text-Files profit the most probably.

  • @lvscan
    @lvscan 10 лет назад +1

    Excellent Video. Thanks for helping me understand Linux a little better!

  • @fabriziodutto7508
    @fabriziodutto7508 4 года назад

    All very good! Except using wordpress :-) Thank you for sharing! Just wanna add that performing the tar -c.. command is NOT adding new nor updating old files inside the tar.gz file, every time it overwrite them, just take it into consideration! Also you can recover a single file from the tar, by using the --file option.

  • @ciscomind626
    @ciscomind626 9 лет назад

    I like Your Channel So much You are the best teacher i ever had !
    You are amazing Guy Too bad I can't join you in real Classroom With my laptop :)
    have a nice Day Greeting from Algeria

  • @DJ369-Miami
    @DJ369-Miami 10 лет назад +6

    You forgot to mention that you have to start the cron daemon with /etc/init.d/cron start

    • @makondoo
      @makondoo 5 лет назад

      i did not start cron daemon with that and it works - Kubuntu 18.4

  • @serverguy276
    @serverguy276 9 лет назад

    Eli, you are great, nice video and presentation. I enjoy watching all of your video.

  • @vdenim86
    @vdenim86 13 лет назад

    whole day i had struggled and got this video thank u very much , please some video of apache and mysql thanks eli

  • @jeanettemartinez892
    @jeanettemartinez892 5 лет назад

    Best video yet, you saved my brain thank you!

  • @kewlbeans9905
    @kewlbeans9905 10 лет назад +1

    Thank you kind brother. You are a gentleman and a scholar.

  • @lalitpnwr
    @lalitpnwr 12 лет назад

    Eli you are a awesome teacher

  • @Axel-rs3cg
    @Axel-rs3cg Год назад

    appreciate your videos lessons and logical well expressed manner 👍

  • @prashanthb6521
    @prashanthb6521 3 года назад

    This was so well explained. Thanks a lot ETCG.

  • @checkmusic2002
    @checkmusic2002 7 лет назад +1

    how we can save every backup by date like 2-3-2017 8:30

  • @BrianThomas
    @BrianThomas 9 лет назад +1

    Great video. Question. What if you wanted to transmit that backup off site to another Linux machine on a schedule? How would you do that?

  • @patlab555
    @patlab555 7 лет назад

    Woow AWESOME course!
    You are taking time explaining every single thing, + you are speaking at a perfect pace for a non-native English speaker
    Thumb up + Subscribed
    Are the 19 who disliked your video, tried it on Windows?

  • @Kreosification
    @Kreosification 12 лет назад

    Parameters can always be mixed for example ls doesn't care if you type "ls -RQ1" or "ls -1QR" :)

  • @morningstars123
    @morningstars123 12 лет назад

    thanks.. Happy to say u are my Linux teacher ..

  • @AppA
    @AppA 13 лет назад

    # With this you can type tard and untar as shortcuts for the tar commands with handles.
    alias tard "tar -cvpzf" >> .bashrc
    alias untar "tar -xvpzf" >> .bashrc

  • @DavidJKoch
    @DavidJKoch 11 лет назад

    Excellent tutorial series on Ubuntu Linux !

  • @srinivasachakradhar2442
    @srinivasachakradhar2442 8 лет назад

    The way you presented Linux videos were really fantastic and it was very crystal clear.Can you share me the link if you have complete Linux Courses Videos....

  • @reddysekhar0072000
    @reddysekhar0072000 6 лет назад

    tq eli, u r making my life easy

  • @CaryInVictoria
    @CaryInVictoria 7 лет назад

    I've been enjoying these tutorials and find them very helpful. Three questions: 1. when extracting from a tar ball, why must you tell tar the file is compressed. Can't it figure that out itself? 2. If I want to schedule a cron job to be performed every Tuesday and Thursday would I enter "24" in the day-of-week location? 3.Suppose I want to schedule a backup once per day with cron, but I don't want the tar ball created today overwritten by the tar ball created tomorrow. I assume there's a way of avoiding that.

  • @01vally5
    @01vally5 3 года назад

    dear when i take the backup..where is the backup path command?,thanks for your lesson

  • @Sawta
    @Sawta 11 лет назад +1

    I haven't researched these questions yet, so I'm sure that there's an answer out for this but it would have been nice if they had been covered in the video:
    1) When running these scheduled cron jobs, is there a way for it to check to see if hardware is active and above a certain level first (say, CPU above 95% and the fans are going nuts), or if some specific program is already running, wait for that task to finish before proceeding with the backup? It sure would suck if you suddenly had cron trying to do a full / backup when you're running some extremely intensive program.
    2) When a new cron job backup is run, will it overwrite the existing tarball in that directory, or does it automatically increment the tarball filenames in some fashion? I.e. backup.tar.gz1, backup.tar.gz2, etc. I'm assuming that it just overwrites the old file. Does anyone happen to know how you would get cron to avoid overwriting previously created backups?
    3) This is really great tutorial for full backups, but how would you go about performing differential or incremental backups? My guess is that the answer is going to be "Just always do Full backups", but there have to be at least *some* cases out there where doing full backups, even with compression, simply wouldn't be acceptable (think 20TB backup when only a 1kb txt file has been modified).

    • @soyargentino200
      @soyargentino200 6 лет назад

      1) yes you can. there are two ways of doing it. the first using ps aux | grep crontab. and the other is with top

  • @asandol
    @asandol 9 лет назад +6

    Hi Eli ! Great videos ! just for you to know. There is a problem (at least for my view) on 11:17. It does not show you type the commands for the tar...only shows when it's finishing !. Best regards !

    • @rafnaegels8913
      @rafnaegels8913 6 лет назад +1

      Adrian Sandol he does show the command afterwards.

  • @BrianThomas
    @BrianThomas 9 лет назад

    another thought I has as well to off site backups. What there were multiple off site storage area's? I have 3.

  • @dasanco1
    @dasanco1 3 года назад

    cron job abort 60 seconds after starting with 'exit code 141' ... thoughts?

  • @aplifiedchaos
    @aplifiedchaos 5 лет назад

    Many thanks buddy. You got yourself a subscriber

  • @shayaanmandal3917
    @shayaanmandal3917 5 лет назад

    Still so much powerful videos

  • @umesh6254
    @umesh6254 7 лет назад +1

    Sorry Eli, I know your video is good.. but in the video how did you get wwwbackup.tar.gz?
    Did you just go through vi and make that empty file or what? Whenever I enter the same command, it says it's not a file or directory or permission denied..

  • @eventhorizon1306
    @eventhorizon1306 6 лет назад

    Great series...Thank you Eli.

  • @PratapKanhed
    @PratapKanhed 8 лет назад

    Thanks for All lectures

  • @perolin3
    @perolin3 9 лет назад

    Eli thanks for all this videos
    Small problem on this:
    In the Lesson „Linux Backup with TAR und Cron Jobs“ something with the order oft the virtual sessions is messed up. The terminal sessions are starting in the middle and later from begin.

  • @ChrisLCBoston
    @ChrisLCBoston 10 лет назад

    Excellent video again!!

  • @TRFAD
    @TRFAD Год назад

    ty this helped but for some reason the commands don't work with cron. I've added date codes so that it puts the date. The syntax works outside of cron but no in the cron tab. Not sure why.
    Instead I created a bash script and just had it handle it and then cron tabbed the bash script.

  • @GeorgeLathem
    @GeorgeLathem 6 лет назад

    I miss this Eli

  • @thetlwintint
    @thetlwintint 12 лет назад

    thank you very much. You are a really great trainer.

  • @shikhavyaghra8969
    @shikhavyaghra8969 8 лет назад

    Thanks for the video....I was struggling with this.This video helped me to solve my problem.

  • @machst3m
    @machst3m 12 лет назад

    just realized that your description has the file .taz.gz in your extension. It won't affect the file at all, just something I realized.

  • @Impulse_Photography
    @Impulse_Photography 4 года назад

    I typed "sudo crontabs" by mistake. Now, I lost my sudo crontab page - its all blank. How can I recover that page???

  • @liketocode
    @liketocode 10 лет назад +5

    Love your videos - educational while entertaing :)

  • @viktor133100
    @viktor133100 4 года назад

    What's the best (easiest) way to tar to a host machine over SSH?

  • @thusithakumaraperera4774
    @thusithakumaraperera4774 10 лет назад

    How we set backup file destination as windows sharing folder in same network???

  • @CaseySchneider
    @CaseySchneider 7 лет назад

    What happens if you are trying to extract from a tar as a tarball by using 'z' in the command?

  • @mr_gumball
    @mr_gumball 8 лет назад

    OMG, Thank you. This is the one of the most useful tut

  • @djsensacion7
    @djsensacion7 9 лет назад +1

    Thank you for the detailed explanations of it all.

  • @theInspireVista
    @theInspireVista 4 года назад

    Can anyone tell me if I want take backup only at 18:00 pm then how can set time, please tell me

  • @Waldi111979
    @Waldi111979 11 лет назад

    hi Eli,
    I watched the video again and you explain a bit how to backup parts or the whole system and how to recover tar ball file, but I was thinking about step-by-step backup of the whole sytem and especially detailed guide how to recover that system, so that it will not have to be re-installed, but just recovered from the tar ball file. for me it looks kind of rocket science, but you probably would say that all was explained already... . anyway, if I will find out somewhere on google.:)

  • @HB-ct8hh
    @HB-ct8hh 7 лет назад

    I don't have a server, just a laptop that I'm wanting a simple way to backup and restore. Can I use this lesson to backup my laptop or is there a better method for my laptop then this lesson dealing with servers? Thanks.

  • @chrisgast
    @chrisgast 2 года назад

    Can I cron a tarball to a storage server? What is the command to add the address and the port?

  • @Grezic
    @Grezic 13 лет назад

    IT's very easy to understand, thanks very much.

  • @dai7169
    @dai7169 5 лет назад

    Thanks a lot Eli

  • @isnadsultana3550
    @isnadsultana3550 5 лет назад

    Your video is so helpful and informative. Can post another video for how to automatically backup files for all users home directory using tar and shell scripting?

  • @cimimonsti
    @cimimonsti 12 лет назад

    Can you do one with Rsync? They way you convey everything is great!

  • @satishkumar-to1ud
    @satishkumar-to1ud 6 лет назад

    Hello Eli
    Thanks for the sharing knowledge .
    I have a query , how can we restore the data to same directory where the data is missing instead of creating a recover directory and moving to it .
    thanks
    Satish

  • @BornWithLegend
    @BornWithLegend 7 лет назад

    superb sir thanks for upload

  • @Ravicgsce
    @Ravicgsce 8 лет назад

    HI Eli I have a doubt. How do i schedule crontab to create file names dynamically so that my previous backups are not overwritten?

  • @BigViolenceCroaker71
    @BigViolenceCroaker71 11 лет назад

    What if you want to use cron to create an additional backup file instead of overwriting the existing one? So, after an hour you'd have 60 backups, each with a unique name... obviously.

  • @wubalm
    @wubalm 11 лет назад

    I like your lessons - very clear and simple. I am learning a lot from your lessons.
    I have one question. How can we backup to external hard drive from the command line. I am new to linux and I would appreciate if you teach us about this. Thanks.

  • @nachoherranz1240
    @nachoherranz1240 10 лет назад

    Can you make an Endian Firewall tutorial with DNS and Zimbra?

  • @leo-rq2ei
    @leo-rq2ei 6 лет назад +1

    No incremental and differential backups .-.

  • @Watchittttttt
    @Watchittttttt 4 года назад

    You are awesome sir

  • @ldean97
    @ldean97 6 лет назад

    Hey Eli I have a question, im running linux mint 19 and I was wanting to add a custom desktop environment from the web, ive already got the file and its a .tar.gz but I cant figure out how to add it

  • @azyske
    @azyske 8 лет назад

    hi, if I wanna exclude more than one folder? what should I type? "exclude=/video /audio" am I correct? thx

  • @suryakiransuravarapu
    @suryakiransuravarapu 8 лет назад

    Hi, i want to schedule a cron entry which run a videos at particular time, how can i do it.
    i tried below one but didn't work. i'm sure about timings and date but missing sometime else
    28 20 31 * * cd /home/mr-surya/Downloads; DISPLAY=:0 vlc; /usr/bin/xdg-open Chilakamma.mp4 2>/tmp/errorra

  • @MohdDanish-kv9sw
    @MohdDanish-kv9sw 2 года назад

    also teach how to do incremental backups and how to restore them