sshfs <USERNAME>@<SERVER>:/ /home/<PATH TO LOCAL>/ -p 2222
fusermount -u ~/
| <?php | |
| // this will probably take a while to run | |
| // so don't refresh the page, if the browser complains | |
| // continue to wait | |
| // -1 posts per page will give ALL | |
| // will default to 10 if blank | |
| // default blog posts | |
| $blog_args = array( |
| <?php | |
| /** | |
| * Checks that the filename has correct extensions | |
| */ | |
| function validate_export( $filename ){ | |
| $ext = explode(".", $filename); | |
| if( $ext[1] && $ext[1] != "sql" ){ | |
| return false; | |
| } | |
| if( $ext[2] && $ext[2] != "gz" ){ |
sshfs <USERNAME>@<SERVER>:/ /home/<PATH TO LOCAL>/ -p 2222
fusermount -u ~/