用于文件备份的后台插件。

backwork-backup-files的Python项目详细描述


后台备份文件Build StatusPyPI version

添加对^{}上文件备份的支持。

要求

这个插件是在^{}之上构建的。

安装

您可以使用pip安装此插件:

$ pip install backwork-backup-files

使用

安装插件后,您将能够使用backup filesrestore files命令 在backwork

后台备份文件
$ backwork backup files -h
usage: backwork backup files [-h] -f FILE

Back up one or more files. It uses `tar -cz` which gzips the output. You can
use any of the arguments supported by `tar`. Add a list of files and
directories you want backed up as the last thing in the line. Use `tar --help`for more information.

optional arguments:
  -h, --help            show this help message and exit
  -o FILE, --output FILE  output gzipped file path

您可以传递通常与tar

一起使用的任何选项
$ backwork backup files -o foo.tgz --verbose /tmp /var/log

--help消息所示,有一个必需的参数 必须在备份过程中使用。

-o FILE--output FILE将把tar的输出保存到 文件。

后台还原文件

usage: backwork restore files [-h] input

Restore one or more files from a .tar.gz file. It uses `tar xvzf`. You can
use any of the arguments supported by `tar`. Use `tar --help`for more
information.

positional arguments:
  input       .tar.gz file to restore from

optional arguments:
  -h, --help  show this help message and exit

重要信息:-h参数冲突,因为它是保留的 以获取帮助/用法消息。使用--dereference跟踪符号链接。

构建和发布

特拉维斯将为你发布版本。若要生成,请将标记推送到回购:

git tag -a v0.1.2 -m 'v0.1.2'
git push --tags

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java:关于Eclipse的几个问题   java在Apache Camel Netty组件中使用SSL,并带有JVM默认密钥库文件   Java解析未格式化字符串   java前缀字符串资源标识符,用于在运行时选择备用版本   java为什么三元表达式在if语句正常工作时不更新值?   java我需要帮助程序以特定格式输出文本文件。   java Spring Tomcat启动问题setCatalinaBase(Ljava/io/File;)   递归java数独回溯递归   java如何解决构造函数上的错误?   getEngineByName(“JavaScript”)在Java 11上返回null   java如何将对象添加到数组并打印它?   java我在层泄漏反模式中吗?我该怎么办?   java动态移动带有ImageIcon的JLabel时,会在帧周围跳跃   JavaXSLT转换释放了特殊字符   java BuffereImage会降低性能   DL4J中的java回归预测下一个时间步   Java 11中的spring boot复制JAR导致以下错误   如何通过编程将图像编码到Java视频文件中?   如何使用Java更新Pentaho转换连接数据?