Rssh
From DreamHost
rssh is a restricted shell, used as a login shell, that allows users to perform only ftp, sftp, scp, cvs, rdist, and/or rsync operations. It is implemented on DreamHost to allow the following functionality for the Backups user:
- rsync
- scp
- sftp
- ftp
rsync only runs on Unix machines, so Windows users will need a shell with a Windows user-interface to automate Personal Backups:
- DeltaCopy
- CWRSYNC Is a packaging of rsync, ssh client and the required cygwin libraries for Windows. It runs on all versions of Windows.
Getting your Backups User diskspace usage
You can get the information through the DreamHost API. Just follow these steps:
- Create a new API key (here) with access to the function user-list_users_no_pw.
- Insert the API key you just generated into the following script.
<?
$API_KEY = 'PUT YOUR API KEY HERE';
////// DON'T EDIT BELOW THIS LINE //////
$data = file_get_contents(
"https://api.dreamhost.com/?".
"key=$API_KEY&cmd=user-list_users_no_pw&format=php"
);
if($data === false) {
die("Error getting API response");
}
$data = unserialize($data);
if($data["result"] != "success") {
die("API error: " . $data["result"]);
}
foreach($data["data"] as $user) {
if($user["type"] == "backup") {
$username = $user["username"];
$usage = $user["disk_used_mb"];
if(!$usage) {
$usage = "< 10";
}
echo "Backup user $username has $usage MB used.\n";
exit;
}
}
echo "Could not find backup user!";