How to use Node.js to backup your personal files (and learn some webdev skills along the way)

  Рет қаралды 2,176

Alex Eagleson

Alex Eagleson

Күн бұрын

Пікірлер: 3
@mohamedyoussef8835
@mohamedyoussef8835 2 жыл бұрын
Awesome videos - great information - great explanations 😃😃😃
@som.shekhar
@som.shekhar 2 жыл бұрын
Nice video 👍 One question: If this node script is running on my old laptop connected to an external harddrive, and the directory I want to backup (source) is in my primary laptop, then how can I achieve this. If I SSH from my primary laptop into my old laptop, I can access the old laptop from the primary one but the node script (running on old laptop) can't access the source directory in my primary laptop then how will it backup? I'm a little confused here, can you please help me with this?
@AlexEagleson
@AlexEagleson 2 жыл бұрын
Hey there! Good question. This example operates on the requirement that the source of the files is in some location that is always available to the script. In the example it is two external hard drives both on the old laptop (and it is backing up one to the other). The workflow that I use is when I take some files (say photos off my phone) I drag them onto the old laptop's external drive over the network. This can be SSH, or just drag/drop over network if using the same OS, or a remote desktop tool like TeamViewer or VNC Connect. The backup script then takes care of making a weekly copy of them onto another hard drive. You could have the primary drive on another laptop/machine, but it would require two things: the old laptop needs to be able to SSH into your primary machine, to `rsync you@primary/primary-drive:you@secondary/secondary-drive` and your primary machine needs to be awake and online at the time of day/week that the backup occurs. This video and tutorial is primarily meant to be an example of what's possible, how I've configured it to work for myself, and how you can hopefully use the tools to build a workflow that works for you!
How to Create a React Typescript Monorepo with Git Submodules
40:54
Alex Eagleson
Рет қаралды 13 М.
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 16 МЛН
Mom had to stand up for the whole family!❤️😍😁
00:39
UFC 308 : Уиттакер VS Чимаев
01:54
Setanta Sports UFC
Рет қаралды 826 М.
How to backup mongodb every night - it's really easy.
17:32
Mafia Codes
Рет қаралды 27 М.
Nest.js File Upload to AWS S3 + Rate Limiting
17:18
Michael Guay
Рет қаралды 29 М.
Google Drive and Node JS integration
27:10
ithinktechnologies
Рет қаралды 11 М.
PostgreSQL Database Automated Backups Using Node.Js and Bash
14:57
Code Solution
Рет қаралды 2,4 М.
Think Fast, Talk Smart: Communication Techniques
58:20
Stanford Graduate School of Business
Рет қаралды 41 МЛН
How to Connect a React App to a Notion Database
28:52
Alex Eagleson
Рет қаралды 7 М.
What is NPM, and why do we need it? | Tutorial for beginners
14:27
Coder Coder
Рет қаралды 324 М.
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 16 МЛН