I just need some clarification with regards to how cpbackup-exclude.conf.
During nightly backups I notice that cPanel first copies the homdirectory to the cpbackup/daily/account/ folder. Does the folders and files listed in the cpbackup-exclude.conf file also gets copied in this phase? Does the file copy script immediately exclude those files?
Or does the files/folders on cpbackup-exclude.conf only get excluded during the tar process?
The reason I ask is that we have a temporary folder that will contain large number of files and subfolders during normal operation. I have included this folder into the cpbackup-exclude.conf file so it does not get included in the final archive. But the backup process is starting to take too much time. I looked at the backup logs and I see these lines:
Copying homedir.............
.........
.........
.........
That is followed by 2000+ more ".........". The lines after the "Creating Archive..." line is much less.
So this looks, at least to me, that the excluded folders still gets included in the homedir copy and only gets excluded in the archive creation process. Can anyone confirm if this is correct?
If it is correct, can anyone suggest a workaround so that the excluded files/folders don't get copied to shorten the time it takes for the backup to complete? I am thinking of turning those temporary folders into symlinks and putting it into another location. Will the filecopy process still follow these symlinks?
Thanks,
During nightly backups I notice that cPanel first copies the homdirectory to the cpbackup/daily/account/ folder. Does the folders and files listed in the cpbackup-exclude.conf file also gets copied in this phase? Does the file copy script immediately exclude those files?
Or does the files/folders on cpbackup-exclude.conf only get excluded during the tar process?
The reason I ask is that we have a temporary folder that will contain large number of files and subfolders during normal operation. I have included this folder into the cpbackup-exclude.conf file so it does not get included in the final archive. But the backup process is starting to take too much time. I looked at the backup logs and I see these lines:
Copying homedir.............
.........
.........
.........
That is followed by 2000+ more ".........". The lines after the "Creating Archive..." line is much less.
So this looks, at least to me, that the excluded folders still gets included in the homedir copy and only gets excluded in the archive creation process. Can anyone confirm if this is correct?
If it is correct, can anyone suggest a workaround so that the excluded files/folders don't get copied to shorten the time it takes for the backup to complete? I am thinking of turning those temporary folders into symlinks and putting it into another location. Will the filecopy process still follow these symlinks?
Thanks,