Assign a different Directory in ownCloud to Store All Backup Files


In Use TurnKey to Simplify ownCloud Installation, you may host your TurnKey ownCloud. In Access Shared Folder on VirtualBox from Guest Linux VM, you may use a shared folder on host from guest VM.

How about host TurnKey ownCloud and ask it to save all backup files in a shared folder on host to save efforts increasing the Virtual Machine Disk? Even on a different internal hard drive or external RAID for better protection?

You need to manually change the ownCloud configuration file and add www-data to vboxsf group in Linux.

Configure ownCloud to Save to a Different Directory

ownCloud save all files in /var/www/owncloud/data. You may modify config.php which is in /var/www/ownclou/config directory.

Look for ‘datadirectory’ and replace ‘/var/www/owncloud/data’ with your shared folder full path.

Add www-data to Group vboxsf

Next, add www-data to vboxsf group user by edit the vboxsf:x:1001: in /etc/group:

vboxsf:x:1001:www-data

Reboot your VM and it should save files to your shared folder now.

Reference

  1. Use TurnKey to Simplify ownCloud Installation
  2. TurnKey: ownCloud
  3. Access Shared Folder on VirtualBox from Guest Linux VM
  4. Wiki: VMDK
  5. ownCloud
  6. 鳥哥的 Linux 私房菜:/etc/group 檔案結構
  7. nixCraft: Understanding /etc/group File
  8. VirtualBox: Shared folders and Apache
  9. VirtualBox: HOWTO: Use Shared Folders
About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s