Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Backup Server Laravel Package

spatie/laravel-backup-server

Receive, store, and manage encrypted backups from multiple Laravel apps on a dedicated backup server. Built on top of spatie/laravel-backup, it centralizes backup uploads, retention, and monitoring for safer off-site storage.

View on GitHub
Deep Wiki
Context7

title: Creating a source weight: 2

The collection of files on a remote server that you wish to backup is represented by a Source.

A Source is an Eloquent model. It can be created like this.

Destinations\BackupServer\Models\Source::create($attributes)

These attributes can be set

  • name (required): the name of the host, you can name it anything you'd like

  • host (required): the hostname of the server you wish to backup

  • ssh_user: the user name to use to ssh into the source server

  • ssh_port: the port to use when connecting to the source server

  • ssh_private_key_file: the path to a ssh key file to use when connecting to the source server

  • destination_id: the id of the destination you wish to backup to

  • cron_expression (required): the cron expression on which backup-server:dispatch-backups should create backups for this source

  • includes: an array of paths you wish to backup. These can be relative to the home directory of the ssh user, or absolute

  • excludes: an array of paths you wish to exclude from the backup. These should be relative to the paths giving in includes

  • pre_backup_commands: an array of commands that should be executed on the source server prior to backing up. You could use this to dump the database to the filesystem.

  • post_backup_commands: an array of commands that should be executed on the source server after the backup is complete. You could use this to clean databases that have been dumped to the filesystem.

The other attributes on the destination are used for monitoring health and clean up of backups.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport