-
Notifications
You must be signed in to change notification settings - Fork 26
Redirecting files
R edited this page Dec 27, 2021
·
4 revisions
4.0.0+
- I have some files that are not required by the server but are needed in a specific location on the client.
- I have files on the server that should be in a different location on the client.
Add an entry to the redirect
list of serversync-server.json
{
"rules": {
"files": {
"include": [
"cool_stuff/**"
]
"redirect": [
{ "pattern": "cool_stuff/**", "redirectTo": "mods/cool_mod" }
]
}
}
}
This will take files that match the provided glob pattern and sync them to the provided location instead.
- Redirects are relative to 'root', i.e. where serversync is executing, they can not move files higher than that (intentional)
-
..
is not supported
How to guides
- Quick start guide
- Server setup
- Redirecting files
- Using the command line
- Excluding files from sync or deletion
- Banning clients
Multiple profile management
Troubleshooting