It would seem that you could use rsync to accomplish this task simply and use a script to call it with parameters. Your script is educational, though. Well done.
@TheLukemcdaniel
2 жыл бұрын
Something is very very wrong about seeing someone use Microsoft visual studio in Linux...
@cryptombt5880
2 жыл бұрын
Thanks for that mate. Really good video. Are you making anymore videos as you haven't posted in awhile 😊
@falkens_maze
Жыл бұрын
I didn't even know there was a "newer file" check option
@sebastianc2077
2 жыл бұрын
Thanks man i am new to bash scripting and this definitely helped.
@ryanelliott7981
2 жыл бұрын
Super helpful script, very straightforward and best of all...it works! Thanks homie!
@solidhit2
2 жыл бұрын
Hello, what happens to the files in destination that no longer exist in source? What if I delete 10000 files in source, shouldn't they also be deleted in destination?
@henriquecustodio
3 жыл бұрын
Thanks for the video
@tesla2115
6 ай бұрын
Nice! worked great!
@abdelhamidbensadoun
Ай бұрын
Amazing!
@rayyoudontneedtoknow6887
2 жыл бұрын
This works very well. I've been looking for something just like this but when you execute the file on the desktop, the terminal doesn't open the script still does its job. Is there a way to fix this
@theseeker4104
2 жыл бұрын
While on the desktop depending on the desktop enviornment you would have to make it exexutable or by going in to your terminal in the desktop and type: sudo chmod 755 backup.sh and thats it.
@Tro79xD
2 жыл бұрын
Very good!
@sibaprasadbisoi90
11 ай бұрын
Thanks man! it is very helpful. it would be great if you create a series of scripting like the same.
@varunkandukuri
2 жыл бұрын
@Herbertech, While taking the backup .. how can i exclude few directories from the source. Any idea please
@zk321
Жыл бұрын
look into VS code server which allows you to use it on minimal machines
@IceOnDaMix
2 жыл бұрын
ERROR: find: -printf: unknown primary or operator #im running on macos
@IceOnDaMix
2 жыл бұрын
@Herbertech
@longdinhsy6642
2 жыл бұрын
But this only backs up files in source when there are only files in source right? What if there are subdirectories in the source folder too? It will duplicate because this only backs up files in the source folder.
@Herbertech
2 жыл бұрын
This back-ups all files in the source including subdirs. Correct me if I'm wrong but it should as far as I know. I will do an updated version on this in the future, which will be more advanced. So if this does not support it, be patient. I'm going to focus on Bash the coming months. 😉
@longdinhsy6642
2 жыл бұрын
@@Herbertech yes youre correct it does backup files in the source including subdirs, but with the files in the subdirs in the source, it will backup more than once when you get into the destination folder. Basically in the destination folder there will be the subdir, and in the subdir there should only be files, but there is also another subdir of it inside
@longdinhsy6642
2 жыл бұрын
i followed your tutorial and it was really helpful, but i think this only works if you only have files inside a folder, not when there are also sub folders in it.
@longdinhsy6642
2 жыл бұрын
If a file is edited, it will backup that newer version. But if the file is in another directory and it's edited, it will backup that newer version but with the directory it's in as well.
Пікірлер: 23