• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question How to backup ?

Alexbkaze

New Pleskian
Well I want to take backup but I have one problem

I am having directory name 'files' which contain files and folders.

What I want is to exclude files that is in directory 'files' but want to include sub folders and files inside them.
 
You could create a crontab job that automatically creates a .tar.gz archive from the subfolders that you want to backup and writes that archive to a directory that is backed up. Run that job a few minutes before automatic backup is scheduled. For example something like:
# tar -czf /backed/up/path/myarchive.tar.gz /excludedpath/subfolder1 /excludedpath/subfolder2
Then you can exclude the whole "excludedpath" path from your backup, yet will still have the content of its subfolders.
 
Back
Top