lady:factory:phprsnap_en

phpRsnapshot

phpRsnap is a PHP web frontend to browse through a Rsnapshot Backup Archive. This is my first PHP web app (developed over CodeIgniter) and I don't speak english very well so be patient with me, my code and my writing style ;)

As rsnapshot is based on rsync and hard-links, the only supported platform will be Linux. It has been tested under Apache and Lighttpd Servers and PHP5.

Current Features:

  • Browse through unique (merged of all snapshots) archive tree
  • Browse through history (see versions of a file)
  • Download an item snapshot.
  • View differences of files between snapshots
  • View changes in directories between snapshots
  • Time browsing throught snapshots
  • Report snapshot usage
  • Caching

Future Features:

  • Donwload zipped files as Cart

Download the tarball of phprsnap-0.1.1.tar.gz or the development version

First unzip the files in the web server folder.

Copy application/config/appconfig.php.dist to application/config/appconfig.php. Edit the file application/config/appconfig.php,

rsnapshot_root

Must point to the root directory where rsnapshot store the different snapshots

cachetime

Is the time in minutes to cache the pages. Keep in mind that the pages will remain the same as long as no new snapshot has been taken.

CodeIgniter

In application/config/config.php, set 'baseurl' to the url of your server where will live the application, and if you want to caching works make a web-server-writable-directory and point cache_path to it. Finally you must configure your webserver to do rewriting (or include index.php in the 'baseurl' option).

In lighttpd:

url.rewrite-once = (
  "^/phprsnap/assets.*"         => "$0",
  "^/phprsnap/([^assets/].*)$"  => "/phprsnap/index.php/$1"
)

The code access directly to the filesystem as the web user, so current privilege limitations of the web user apply for filesystem permission (for example the phpRsnapshot cannot read a file or directory restricted to root user)

Disclosure: If you don't know everyone can see your configuration backups or password-note-file don't put this in a public server or secure your web installation to only allow access to restricted users (In the future, maybe, phpRsnap will support users through HTTP-auth)

phpRsnap would be more usefull if some features were implemented, but some of them (like for example scan archive disk usage) are very I/O intensive and this is not desirable in a web application. If you have an idea of how to implement this in a fast manner please say it. (I will try caching).

Another big utility will be download a directory or selected files as an archive (ZIP, gz), but how about the size of the file?

Easy, fast, small and simple … and because I am a newbie?

Well, the code is free (GPL) and I would agree any suggestion, patches, features and else. But this is my first project in PHP and I mainly developed it for 2 reasons: Needs and learning. I want to learn from other PHP developers and keep control of the code.

But.. eh!!! this is GPL, then you can take my code and develop and enhance it !! I would like that if you do so you notify me of the evolution of your own project.

  • lady/factory/phprsnap_en.txt
  • Last modified: 2023/06/26 16:25
  • by 10.24.231.248