码迷,mamicode.com
首页 > 其他好文 > 详细

Backup and synchronize LibreOffice configurations using rsync

时间:2014-06-25 21:51:54      阅读:312      评论:0      收藏:0      [点我收藏+]

标签:style   class   code   tar   ext   com   

When using rsync to backup and synchronize configuration files, do remember to close all LibreOffice sessions including the Quick Starter.

However, even by closing all the sessions, it still cannot ensure a safe and reliable configuration backup. For example, it has made all the extensions fail to work on my home PC after such a backup based on the configuration files on company‘s PC. Therefore, we should only backup some of the configuration files instead of all of them by using --exclude command line options in rsync asfollows:

system("rsync -rtvz --update --delete --exclude=\"/registrymodifications.xcu\" --exclude=\"/backup\" --exclude=\"/extensions\" --exclude=\"store\" --exclude=\"temp\" --exclude=\"TexMaths\" --exclude=\"uno_packages\" /cygdrive/c/Users/CNJITIA1/AppData/Roaming/LibreOffice/4/user/ /cygdrive/d/administrator/Documents/computer/office-typesetting/libreoffice4-config-backup/");

Backup and synchronize LibreOffice configurations using rsync,布布扣,bubuko.com

Backup and synchronize LibreOffice configurations using rsync

标签:style   class   code   tar   ext   com   

原文地址:http://www.cnblogs.com/quantumman/p/3804610.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!