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

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如何在Android的Rest服务中传递列表<Integer>对象和字符串   java Hibernate集合初始化问题   java用ByteBuddy定义一个方法、调用、拦截器和委托给目标?   java递归对象删除   java用标签填充GridPane   java使用ApachePOI在word文档中添加水印   java如何可视化地使用在NetBeans中扩展组件的类?   javascript如何在java web应用程序中刷新页面后保留选中的单选按钮   在Java中,小程序试图使用MouseListener绘制矩形会导致程序崩溃,而不会生成异常   java如何在子注释上下文中使用spring属性源?   当应用到FactoryBean时,java会执行Spring的@Lazy工作吗?   java验证二进制代码和无无限循环的重复程序   java如何将ArgumentCaptor与Mockito一起使用。when()。然后返回()   使用JPA为视图定义DTO和存储库的java问题