cpbackup-exclude.conf working?
This is the entry in /etc/cpbackup-exclude.conf
And I see this in the script /scripts/pkgacct
Whenever I take backups I can see the excluded directories in the backup. for example ".cpanel/caches"
cat /etc/cpbackup-exclude.conf
*/.wysiwygPro_*
*/core.[0-9]*
.MirrorSearch
.cagefs*
.cpan
.cpanel/caches
.cpanel/datastore
.cpcpan
.sqmailattach
access-logs
And I see this in the script /scripts/pkgacct
# means we've already excluded the stuff it replaces from the
if ( $isbackup || $isuserbackup ) { Cpanel::SafeSync::build_cpbackup_exclude_conf( $homedir, $user ); }
"$homedir/cpbackup-exclude.conf",
$Cpanel::SafeSync::global_exclude
Whenever I take backups I can see the excluded directories in the backup. for example ".cpanel/caches"
tar -tf /home/cpmove-xxx.tar.gz | grep ".cpanel/caches"
cpmove-xxx/homedir/.cpanel/caches/
cpmove-xxx/homedir/.cpanel/caches/filesys/
cpmove-xxx/homedir/.cpanel/caches/filesys/~
cpmove-xxx/homedir/.cpanel/caches/filesys/~.stat
cpmove-xxx/homedir/.cpanel/caches/filesys/~home~xxx
cpmove-xxx/homedir/.cpanel/caches/filesys/~home~xxx.stat
cpmove-xxx/homedir/.cpanel/caches/ns_cache_net
cpmove-xxx/homedir/.cpanel/caches/dynamicui/
cpmove-xxx/homedir/.cpanel/caches/dynamicui/paper_lantern_en_.cache
cpmove-xxx/homedir/.cpanel/caches/config/
cpmove-xxx/homedir/.cpanel/caches/config/_etc_cpanel_ea4_paths.conf___default_equal_space_seperated_config
cpmove-xxx/homedir/.cpanel/caches/statcache_persistant
cpmove-xxx/homedir/.cpanel/caches/user_manager/
cpmove-xxx/homedir/.cpanel/caches/rewriteinfo
Please sign in to leave a comment.
Comments
0 comments