Removed setting "strong directory permissions", as it is not recommended by Nextcloud anymore
This commit is contained in:
@@ -142,4 +142,4 @@ fi
|
|||||||
|
|
||||||
echo
|
echo
|
||||||
echo "DONE!"
|
echo "DONE!"
|
||||||
echo "Backup created: ${backupdir}"
|
echo "Backup created: ${backupdir}"
|
||||||
@@ -145,8 +145,8 @@ echo
|
|||||||
# Set directory permissions
|
# Set directory permissions
|
||||||
#
|
#
|
||||||
echo "Setting directory permissions..."
|
echo "Setting directory permissions..."
|
||||||
chown -R "${webserverUser}" "${nextcloudFileDir}"
|
chown -R "${webserverUser}":"${webserverUser}" "${nextcloudFileDir}"
|
||||||
chown -R "${webserverUser}" "${nextcloudDataDir}"
|
chown -R "${webserverUser}":"${webserverUser}" "${nextcloudDataDir}"
|
||||||
echo "Done"
|
echo "Done"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
@@ -160,25 +160,6 @@ cd ~
|
|||||||
echo "Done"
|
echo "Done"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# Restore hardened directory permissions
|
|
||||||
#
|
|
||||||
echo "Set hardened directory permissions..."
|
|
||||||
find "${nextcloudFileDir}" -type f -print0 | xargs -0 chmod 0640
|
|
||||||
find "${nextcloudFileDir}" -type d -print0 | xargs -0 chmod 0750
|
|
||||||
chown -R root:"${webserverUser}" "${nextcloudFileDir}"
|
|
||||||
chown -R "${webserverUser}":"${webserverUser}" "${nextcloudFileDir}/apps/"
|
|
||||||
chown -R "${webserverUser}":"${webserverUser}" "${nextcloudFileDir}/config/"
|
|
||||||
chown -R "${webserverUser}":"${webserverUser}" "${nextcloudFileDir}/themes/"
|
|
||||||
chown -R "${webserverUser}":"${webserverUser}" "${nextcloudDataDir}"
|
|
||||||
chown root:"${webserverUser}" "${nextcloudFileDir}/.htaccess"
|
|
||||||
chown root:"${webserverUser}" "${nextcloudDataDir}/.htaccess"
|
|
||||||
chmod 0644 "${nextcloudFileDir}/.htaccess"
|
|
||||||
chmod 0644 "${nextcloudDataDir}/.htaccess"
|
|
||||||
echo "Done"
|
|
||||||
echo
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Disbale maintenance mode
|
# Disbale maintenance mode
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -26,4 +26,4 @@ This will create a direcotry with the current time stamp in your main backup dir
|
|||||||
|
|
||||||
## Restore
|
## Restore
|
||||||
|
|
||||||
For restore, just call *NextcloudRestore.sh*. This script expects one parameter which is the name of the backup to be restored. In our example, this would be *20170910_132703* (the time stamp of the backup created before). So the full command for a restore would be *./NextcloudRestore.sh 20170910_132703*.
|
For restore, just call *NextcloudRestore.sh*. This script expects one parameter which is the name of the backup to be restored. In our example, this would be *20170910_132703* (the time stamp of the backup created before). So the full command for a restore would be *./NextcloudRestore.sh 20170910_132703*.
|
||||||
Reference in New Issue
Block a user