Transferring files from my Linux VM to my localhost
Hey Guillermo here,
So right now, I did another project and my files are being held hostage in a Linux Virtual Machine (Rocky Linux) and I want to duplicate my project for back-up and testing purposes. So I needed way to back-up my project.
For the people that don't want to read...
Visual Studo Code can download your projects. Just SSH in your server, go one directory up and select your folder to download. I would suggest to tar or zip your files first. zip, download, done.
Visual Studio Code
Since Visual Studio Code is doing the majority of the work like forwarding my project to localhost. I figured that I could download my project and bring it to my local host. (my own device)
Zipping files
First I zip my files, since it takes less time to transfer a lot of small files to my host or any other device.
You can also I use tar, but from the top of my mind I am not sure if Windows 10 and Windows 11 will support tar out of the box. But you can download 7-Zip and use that program to pack and unpack tar files.
1. Installing zip
sudo dnf install zip -y
2. The command that I use to zip files on Rocky Linux
`zip -0 -r whatever.zip ./mkdocsguillermo.zip