简体   繁体   English

Perl备份脚本建议和示例

[英]Perl Backup Script Advice and Examples Please

I am trying to create some backup scripts written in perl. 我正在尝试创建一些用perl编写的备份脚本。

I am just after some examples best practises etc.. 我只是在一些示例最佳实践等之后。

Problem: 问题:

Backup files and directories from various locations on a system, is it better to move to a temp location then tar and zip them? 从系统上的各个位置备份文件和目录,将其移动到临时位置然后用tar和zip压缩是否更好? or just do it from where they are? 还是只是从他们所在的位置开始?

Hope someone can help. 希望有人能帮忙。

Thanks! 谢谢!

There are approximately six million backup scripts floating around the web. 网上大约有六百万个备份脚本。

Here is one I wrote about eight years ago, it still works for me . 这是我八年前写的,至今仍对我有用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM