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

Securely store and manage backups from multiple Laravel apps on a dedicated backup server. Built on spatie/laravel-backup, it automatically receives and organizes incoming backups, with setup and docs tailored for Laravel deployments.

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.
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium