小编Fid*_*way的帖子

Zip the entire server from command line

I'm using a Ubuntu 14.04.4 LTS on my server. Is there a way to zip everything on the server in a single archive, preferably with a single command?

I've tried using

zip -r backup.zip
Run Code Online (Sandbox Code Playgroud)

but that doesn't work, since I'm not providing it with what I would like to zip. I have also tried using

zip -r backup.zip *.*
Run Code Online (Sandbox Code Playgroud)

but that only zips the files, and not the directories.

I am aware that I could go with

zip -r var.zip …
Run Code Online (Sandbox Code Playgroud)

ubuntu zip

1
推荐指数
1
解决办法
4429
查看次数

标签 统计

ubuntu ×1

zip ×1