just now i finished the course and it was really really helpful for me i learned a lot about bash scripting thanks for all the effort and sevrices❤
@RyuBateson218
Жыл бұрын
Why do you only have 2 dad jokes in your picture folder?
@yoaqueem
9 ай бұрын
Great series. Unless the "backup" directory exist before running the rsync command, rsyncs call to mkdir fails. It seems mkdir have a problem creating the parent folder "backup" to "current", unless receiving the option "-p".
@Er_IT_prashantjha
2 ай бұрын
With this I have done with linux series, Thank you so much Sir 🙏 Regards from India 🇮🇳.
@busdriver1261
Жыл бұрын
Great series - thanks Jay 👍 An extra test you could include in the backup script is the validity of the directory being backed up in $1 i.e. bomb out with a exit code in case the input directory doesn't exist.
@musicluver98765
Жыл бұрын
Great series, I did a couple of Udemy classes for this. But I liked the way you broke down each line and explained it. Making it simple is the hardest job for a teacher. You nailed it!! Thank you.
@yungmuda414
10 ай бұрын
Thanks jay. This is a well put together series. I learned Python about 1 year ago and now I can see why Bash is powerful while needing to script in the Linux environment.
@whyYUbee
4 ай бұрын
Same! Somehow I was bothered by Python and it did not excite me, even though the syntax is fairly simple, but once things get complicated, I just couldn't get myself to write in Python 😂. Bash on the other hand is smooth, fun, and I easily understand even the complex scripting.
@JamesHandley-d6b
9 ай бұрын
completed the series. Very well done, and the length of each video made it very easy to find things that I needed to refresh on. Great job and thanks!
@RykerFreegeld
10 ай бұрын
Up to this point, it was so nice and easy.....😂 Great course though: 10/10. Thanks!
@jonathanrider4417
Жыл бұрын
Great stuff Jay! I would like for you to include storing the backups remotely; I have succeeded in doing this but had some difficulty. Also, it seems that rsync will only process files that the user owns - maybe that goes without saying.
@alex_YTpremium
Жыл бұрын
Hello! I have a couple of questions, If I may. 1. We turned on the -v option of rsync, but I didn't got any output of the command, neither did you. 2. In the argument to for rsync, we specified the "current_date" variable to name the subfolder of "current" folder, but I think it not did it... I'm sorry, if I'm wrong, feel free to correct me. Great videos though, I've learned and still learning a lot from you! Thanks! P.S. For question 2: I watched the video again and now it makes sense :) Sorry!
@stephan4921
Жыл бұрын
The output is redirected to a file with the ">>" operator.
@harryman01
Жыл бұрын
Thank you for the videos , those are a great source of knowledge
@darkknight32920
Жыл бұрын
Possibly naive question, but isn't $(which rsync) interchangeable with rsync? If it's not found in PATH, which rsync shouldn't give anything anyway, right?
@alyelsharkawy5907
Жыл бұрын
he said it is best practice to include the full path to commands used
@Ekte_Sjakie-tr2qb
Жыл бұрын
Thank you so much, been speed running this and it's been very very helpful !!!
@gabrielgodoy7846
Жыл бұрын
Nice series!! Thank you so much Jat for sharing your knowlogy
@davestorm6718
7 ай бұрын
Everything worked, except this backup script - which worked the first time, but kept getting rsync error: error in file IO (code 11) at rsync.c(739) the second time I ran it. Never could figure out what the problem was, but a clue is that, if I touched any file, then the error began (acting like the file is still open?).
@Your-nj5mz
7 ай бұрын
Once you follow command touch Picture\theimage.png that you want tell that been modified You need to type: ./backup.sh Pictures/ backup Not : ./backup.sh Pictures/ backup/
@chromerims
10 ай бұрын
*rsync -b and --backup-dir flags* (6:03) . . . Cool! Thank you, Jay/LLTV 👍 I may update my rsync scripts to use those flags. Kindest regards, neighbours and friends. P.S. The / slash (or no slash) at the end of the destination's directory can be tricky. Your rsync script handles it nicely.
@case_2
9 ай бұрын
some not good problems😂😂😂
@clivewi9103
11 ай бұрын
A good starting script, would have been helpful to include subdirectories, and append the directory been backed up so /current/pictures etc.
@fictitiousnightmares
Жыл бұрын
I tried to make an rsync backup script previously but couldn't figure out how to exclude all hidden folders/files as nothing worked for me. The reason I don't use it is because it tries to back up all my steam games and every other thing in hidden folders when all I want is to backup my damned home directly that is NOT hidden. So it takes up a lot of space it shouldn't, takes a lot more time to backup, and taxes my system while backing up stuff I don't need backed up. Would be nice to be able to finally figure out how to do a backup, have it compressed (tar.gz) and not include all the hidden files so I could have it scheduled, but until then I manually do my backups.
@NavinKumar-wq9xb
Жыл бұрын
Is there any way to return to a particular directory after execution of a perl script? Eg: I am running perl script in bin/a/ directory. After completion of the script ,when returning to terminal it should automatically reach bin/a/b/c/d/ directory
@romikonlinepotapenko3475
7 ай бұрын
Could you, please, explain what does 2>&1 mean? I guess we're redirecting standard error to standard output, but why are we writing it like this? Looks weird. In one of the previous classes of this series you told that we can address both standard error and standard output and send them to the null device like this: if ! command -v rsync >& /dev/null My question is what's the difference? Is my syntax also correct?
@whyYUbee
4 ай бұрын
2>&1 redirects stderr to the same destination as stdout. I hope that helps!
@buntat3975
Ай бұрын
Both methods perform the same thing. It's a matter of preference.
@skmplanet9591
9 ай бұрын
Superb tutorial videos. Please continue your great work.
@random-drops
Жыл бұрын
The date is the ISO date format. I wish everyone uses this format for date one day.
@hennadiikasian4389
Жыл бұрын
Great lessons. Thank you! I would like to see a bit more lessons with shifting arguments in bash and background jobs. Apart from that I think great idea would be to have some kind of recap video just to refresh your knowledge around bash scripting.
@monty_2969
4 ай бұрын
Thanks
@loren683
4 ай бұрын
thank you very much ! great series :)
@ahmedismail8389
6 ай бұрын
Thanks Jay. You have been very helpful
@abdullahmanzoor8825
8 ай бұрын
Thank you so much JAY...I would like to ask the seniors or expersts..after learning to this extent can we apply for a scripting job or what level is this which we can claim?
@whyYUbee
4 ай бұрын
To apply for a job relevant with scripting, I think you need plenty of examples that you can apply your knowledge to real life scenarios. Create automation scripts and present them on git or maybe write a blog that will present your work. Employers are not interested in which course or training you chose and went through but what you can make out of it and give them a proof.
@Lyunpaw
Жыл бұрын
Love these episodes.
@EliteBuildingCompany
Жыл бұрын
Excellent series, thanks you so much sir.
@oussamaboukoutaya8702
8 ай бұрын
You are great Jay, Thank you
@dragsterbixing2584
Жыл бұрын
It would have been great if you had also included the pre requisites for this video or the course video somewhere so I can look them once
It would be good to add some compression options in here too
@claus-kaldeich
Жыл бұрын
VERY GOOD! Excellent!!
@SMARTWAYISABETTERWAY
Жыл бұрын
Great video, very informative.
@gonets7868
Жыл бұрын
Anyone knows what command -v stands for ?
@amirhoseinhafizian5268
Жыл бұрын
Verbose
@Lyunpaw
Жыл бұрын
%F would be a simple way to get that same date format.
@НиколайПавлов-ф6г
9 ай бұрын
or `date -I`
@Alpha_Sadigh
Жыл бұрын
☯🙏 Backup.
@anjanbora7943
Жыл бұрын
My bash script created this for u ---> 💋
@okomazubuike9032
Жыл бұрын
Super great
@sridharramalingam329
8 ай бұрын
Thanks!
@AndreyZloy
8 ай бұрын
Thank you
@anandbapat4706
Жыл бұрын
Amazing series
@guilherme5094
Жыл бұрын
👍👍Thanks!
@HenriqueAbrantesVitoi
Жыл бұрын
With `$(which rsync)` you still have the same security risk of potentially running a malicious command, right?
@LinuxEssentials79
Жыл бұрын
There is less risk that way, because which command will give you the exact path of the command in your system. In other words, it won't run a different script or command with the same name.
@deprimarvin5382
Жыл бұрын
@@LinuxEssentials79 I don't think that this is right. According to the man page of "which" it prints to stdout the full path of the executables that would have been executed when this argument had been entered at the shell prompt. It does this by searching for an executable or script in the directories listed in the environment variable PATH using the same algorithm as bash. So I would agree with Henrique Vitol. P.S. I just tested it: I created a script called /usr/local/bin/rsync and made it executable. "/usr/local/bin" comes before "/usr/bin" in my $PATH. "which rsync" printed "/usr/local/bin/rsync".
@LinuxEssentials79
Жыл бұрын
@@deprimarvin5382 OK I don't believe that it's so easy to exist so many possibilities e.g. to exist a third-party script with the same name in path included in PATH variable. But if you want to be sure, I believe you can make a control statement in your script to run the specific binary or include always the correct full path of each binary.
@HenriqueAbrantesVitoi
Жыл бұрын
Any reason for using `> file 2>&1` instead of `&> file` ?
@LinuxEssentials79
Жыл бұрын
"> /dev/null" that redirects standard output to /dev/null (as it doesn't refer 1 or 2, it's going to include only standard output which is the default). "2>&1" this will redirect standard error to be included into standard output, but standard output was redirected to /dev/null. So both (standard output and standard error) redirected to /dev/null, which can be done more clearly by "&> /dev/null", as Jay describes it in Data Streams video in bash scripting series.
@LinuxCloud79
Жыл бұрын
This is the appropriate expression to combine standard output with standard error.
Пікірлер: 63