Needs review
Project:
Provision
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Mar 2014 at 19:48 UTC
Updated:
20 Jan 2020 at 14:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
helmo commentedI think that adding --dereference (-h, follow symlinks; archive and dump the files they point to) by default could cause trouble for others. Such a symlink could point to a few TB of static data which you don't want to backup...
So I favour the alterable route.
A global config option?
Comment #2
cweagansEither way works for me. I'll work up a patch for both 7.x-3.x and 6.x-2.x if you can confirm that it could be committed to the latter.
Comment #3
cweagansRelated: https://drupal.org/node/2185627
Comment #4
helmo commentedCommitting to both branches should not be a problem for this.
Comment #5
anarcat commentedi wouldn't object to a hook to allow changing the arguments passed to tar, "policy blablabla"... :)
but then i would object to adding -h to backups, especially if we make it a default, or even a user-visible option. people need to understand what that means. it could very easily lead to a DOS attack against Aegir:
The latter command will never finish and will fill up the filesystem and kill your kittens.
Another interesting attack would be to steal Aegir's database credentials using something like:
So -h is a no no. I will close this issue now, reopen or open a new one if you really specifically want customizable tar options.
Comment #6
josebc commentedRe-opening with patch to allow altering tar options via hooks, this way we assume they know what they are doing