Changes

stoney backup: Server set-up

287 bytes added, 16:16, 27 August 2013
/* Project (Directory) Quotas */
=== Project (Directory) Quotas ===
We'll use the following values in the examples:
* project_ID: The uid of the online backup account (4000187).
* project_name: The uid of the online backup account (4000187). This could be a human readable name.
* mountpoint: The mountpoint of the xfs-filesystem (/var/backup). See the <code>/etc/fstab</code> entry from above.
* directory: The directory of the project (187/4000187), starting from the mountpoint of the xfs-filesystem (/var/backup).
With 32-bit user names xfs_quota -x -c 'Define a unique project -s -p ID for the directory hierarchy in the <code>/varetc/backupprojects</187code> file (project_ID:mountpoint/directory): echo "4000187 4000187' :/var/backup xfs_quota -x -c 'limit -p bhard=1048576k 4000187' /var187/backup xfs_quota -x -c 'quota -p 4000187' " >> /varetc/backupprojects
With 16-bit user names xfs_quota -x -c 'project -s -p Create an entry in the <code>/varetc/backupprojid</gugus2 2' /var/backupcode> file that maps a project name to the project ID (project_name:project_ID): xfs_quota -x -c 'limit -p bhard=1048576k 2' echo "4000187:4000187" >> /varetc/backup xfs_quota -x -c 'quota -p 2'projid
Set Project:
xfs_quota -x -c 'project -s -p /var/backup/gugus3 3187/4000187 4000187' /var/backup
Check Project:
xfs_quota -x -c 'project -s limit -p /var/backup/gugus3 3bhard=1048576k 4000187' /var/backup
Set Limit
xfs_quota -x -c 'limit quota -p bhard=1048576k 34000187' /var/backup
Check the Quota:
* <code>-N </code>: suppress the initial header.
* <code>-p </code>: display project quota information.
xfs_quota -x -c 'quota -v -N -p gugus34000187' /var/backup
/dev/vdb1 0 0 1048576 00 [--------] /var/backup
User ID Used Soft Hard Warn/Grace
---------- --------------------------------------------------
root 512000 1024000 0 0 00 [--------]
Project quota on /var/backup (/dev/vdb1)
Project ID Used Soft Hard Warn/Grace
---------- --------------------------------------------------
gugus2 0 0 1048576 00 [--------]gugus3 512000 0 1048576 00 [--------]4000187 0 512000 0 1048576 00 [--------]
</pre>
SLB, editor, reviewer
3,391
edits