Get the App
SLTechnology News&Howtos  ›  Servers  › 

How does Windows or Windows use commands to back up files?

Shulou Source: shulou.com Published: 2022-06-03 05:45:46 10月03日 Update

1) first of all, let's take a look at how to zip a directory.

Windows:

1 zip-r backup.zip "c:\ yourfolder"

Linux: (package your own home directory)

1 tar-czvf ~ / backup.tgz-- exclude backup.tgz ~ /

2) next, let's take a look at an example of creating a compressed package with a time file name and uploading it to a remote host.

Windows

Linux

3) finally, let's take a look at downloading the backed-up compressed package through the wget command.

Windows

Linux

Tags: Directory command backup file next host example file name time Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Apple Redmi Shulou Tech Info Shulou Information