Jump to content

Directories to Ignore Deleting Files

Fixed 1.0.3 1.0.4

dustyhansen
dustyhansen

Posted

I have the config set to ignore the carbon/data/copypaste directory, but it is deleting files off of the target server in the copypaste folder.

# CASE SENSITIVE
directories_to_ignore:
  - carbon/data/AuthToggle
  - carbon/data/Backpacks
  - carbon/data/Basements
  - carbon/data/BetterNpc/custom
  - carbon/data/Clans
  - carbon/data/copypaste
  - carbon/data/ImageLibrary
  - carbon/data/RaidProtection
  - carbon/data/ServerRewards
  - carbon/data/SkillTree
  - carbon/data/Skinner
  - carbon/data/TeamLeaderOnline
  - carbon/data/TeleportGUI
  - carbon/data/ZoneManager
  - carbon/data/ZoneStatus

 

SiCkNeSs

Posted

what is your full config (without your credentials)

dustyhansen

Posted

33 minutes ago, SiCkNeSs said:

what is your full config (without your credentials)

It won't let me attach it.

# MAIN server
server_1_name: Alliant Games Rust Hybrid
server_1_url: redacted # eg 192.168.1.1:2022  using sftp://domain.com:2022 "should" work also
server_1_user: redacted
server_1_pass: redacted
server_1_sftp: True # do not change, for future functionality

# SECONDARY server
server_2_name: Alliant Games Rust Dev
server_2_url: redacted # eg 192.168.1.1:2022  using sftp://domain.com:2022 "should" work also
server_2_user: redacted
server_2_pass: redacted
server_2_sftp: True # do not change, for future functionality

# directories for the bot to keep in sync CASE SENSITIVE
# directories are listed as key/pair. where the key is the directory on the main server, and value is the directory
# on the secondary server eg.
#  oxide/plugins: carbon/plugins
#
# will sync the directory of oxide/plugins on server_1 to the carbon/plugins directory on server_2
# you can use trailing slashes and preceding slashes. eg.
# /oxide/plugins , /oxide/plugins/, and  oxide/plugins  are all valid options

# CASE SENSITIVE
directories_to_sync:
  carbon/configs: carbon/configs
  carbon/data: carbon/data
  carbon/extensions: carbon/extensions
  carbon/lang: carbon/lang

# files for the bot to keep in sync CASE SENSITIVE
# files are listed as key/pair. where the key is the location on the main server, and value is the location on the secondary server
# eg.
#  oxide/plugins/ZoneManager.cs carbon/plugins/ZoneManager.cs
#
# will sync the individual file of "oxide/plugins/ZoneManager.cs" on server_1 to the location of "carbon/plugins/ZoneManager.cs" on server_2

# CASE SENSITIVE
files_to_sync:
    carbon/config.auto.json: carbon/config.auto.json
    carbon/config.client.json: carbon/config.client.json
    carbon/config.json: carbon/config.json
    carbon/config.profiler.json: carbon/config.profiler.json
    server/rust/cfg/bans.cfg: server/rust/cfg/bans.cfg
    server/rust/cfg/server.cfg: server/rust/cfg/server.cfg 
    
# directories for the sync bot to ignore, it will ignore these directories if the path is found within the sync, eg, if you are syncing carbon/data, it will 
# ignore the following
# - carbon/data/AdminMenu


# CASE SENSITIVE
directories_to_ignore:
  - carbon/data/AuthToggle
  - carbon/data/Backpacks
  - carbon/data/Basements
  - carbon/data/BetterNpc/custom
  - carbon/data/Clans
  - carbon/data/copypaste
  - carbon/data/ImageLibrary
  - carbon/data/RaidProtection
  - carbon/data/ServerRewards
  - carbon/data/SkillTree
  - carbon/data/Skinner
  - carbon/data/TeamLeaderOnline
  - carbon/data/TeleportGUI
  - carbon/data/ZoneManager
  - carbon/data/ZoneStatus
  

# files for the sync bot to ignore, it will ignore these files if the path is found within the sync, eg, if you are syncing carbon/config, it will 
# ignore the following
# - carbon/configs/AbandonedBases.json

# CASE SENSITIVE
files_to_ignore:
  - carbon/data/Abandoned Bases.json
  - carbon/data/AuthToggle.json
  - carbon/data/AutoClanAuth.json
  - carbon/data/BackpackRestore.json
  - carbon/data/BedRespawns.json
  - carbon/data/CarRadio.json
  - carbon/data/Clans.json
  - carbon/data/Convoy.json
  - carbon/data/DeployableNature.json
  - carbon/data/DeployableZipline.json
  - carbon/data/DynamicPVP.json
  - carbon/data/EasyVotePro.json
  - carbon/data/FlyingGodStatus.json
  - carbon/data/GPlugins.json
  - carbon/data/LootDefender.json
  - carbon/data/NoteLogger.json
  - carbon/data/PlayerRanks.json
  - carbon/data/PlayerRanksDelayedRewards.json
  - carbon/data/PlayerRanksRewards.json
  - carbon/data/PreventLooting.json
  - carbon/data/QuarryComputer_Data.json
  - carbon/data/RaidableBases_UID.json
  - carbon/data/RaidableBases.json
  - carbon/data/RaidableBasesUI.json
  - carbon/data/SkillTree.json
  - carbon/data/TugboatPriatesPatrolPath.json
  - carbon/data/VanishPlayers.json
  - carbon/data/VehicleLicence.json
  - carbon/data/Whitelist.json

 

SiCkNeSs

Posted

24 minutes ago, dustyhansen said:

It won't let me attach it.

# MAIN server
server_1_name: Alliant Games Rust Hybrid
server_1_url: redacted # eg 192.168.1.1:2022  using sftp://domain.com:2022 "should" work also
server_1_user: redacted
server_1_pass: redacted
server_1_sftp: True # do not change, for future functionality

# SECONDARY server
server_2_name: Alliant Games Rust Dev
server_2_url: redacted # eg 192.168.1.1:2022  using sftp://domain.com:2022 "should" work also
server_2_user: redacted
server_2_pass: redacted
server_2_sftp: True # do not change, for future functionality

# directories for the bot to keep in sync CASE SENSITIVE
# directories are listed as key/pair. where the key is the directory on the main server, and value is the directory
# on the secondary server eg.
#  oxide/plugins: carbon/plugins
#
# will sync the directory of oxide/plugins on server_1 to the carbon/plugins directory on server_2
# you can use trailing slashes and preceding slashes. eg.
# /oxide/plugins , /oxide/plugins/, and  oxide/plugins  are all valid options

# CASE SENSITIVE
directories_to_sync:
  carbon/configs: carbon/configs
  carbon/data: carbon/data
  carbon/extensions: carbon/extensions
  carbon/lang: carbon/lang

# files for the bot to keep in sync CASE SENSITIVE
# files are listed as key/pair. where the key is the location on the main server, and value is the location on the secondary server
# eg.
#  oxide/plugins/ZoneManager.cs carbon/plugins/ZoneManager.cs
#
# will sync the individual file of "oxide/plugins/ZoneManager.cs" on server_1 to the location of "carbon/plugins/ZoneManager.cs" on server_2

# CASE SENSITIVE
files_to_sync:
    carbon/config.auto.json: carbon/config.auto.json
    carbon/config.client.json: carbon/config.client.json
    carbon/config.json: carbon/config.json
    carbon/config.profiler.json: carbon/config.profiler.json
    server/rust/cfg/bans.cfg: server/rust/cfg/bans.cfg
    server/rust/cfg/server.cfg: server/rust/cfg/server.cfg 
    
# directories for the sync bot to ignore, it will ignore these directories if the path is found within the sync, eg, if you are syncing carbon/data, it will 
# ignore the following
# - carbon/data/AdminMenu


# CASE SENSITIVE
directories_to_ignore:
  - carbon/data/AuthToggle
  - carbon/data/Backpacks
  - carbon/data/Basements
  - carbon/data/BetterNpc/custom
  - carbon/data/Clans
  - carbon/data/copypaste
  - carbon/data/ImageLibrary
  - carbon/data/RaidProtection
  - carbon/data/ServerRewards
  - carbon/data/SkillTree
  - carbon/data/Skinner
  - carbon/data/TeamLeaderOnline
  - carbon/data/TeleportGUI
  - carbon/data/ZoneManager
  - carbon/data/ZoneStatus
  

# files for the sync bot to ignore, it will ignore these files if the path is found within the sync, eg, if you are syncing carbon/config, it will 
# ignore the following
# - carbon/configs/AbandonedBases.json

# CASE SENSITIVE
files_to_ignore:
  - carbon/data/Abandoned Bases.json
  - carbon/data/AuthToggle.json
  - carbon/data/AutoClanAuth.json
  - carbon/data/BackpackRestore.json
  - carbon/data/BedRespawns.json
  - carbon/data/CarRadio.json
  - carbon/data/Clans.json
  - carbon/data/Convoy.json
  - carbon/data/DeployableNature.json
  - carbon/data/DeployableZipline.json
  - carbon/data/DynamicPVP.json
  - carbon/data/EasyVotePro.json
  - carbon/data/FlyingGodStatus.json
  - carbon/data/GPlugins.json
  - carbon/data/LootDefender.json
  - carbon/data/NoteLogger.json
  - carbon/data/PlayerRanks.json
  - carbon/data/PlayerRanksDelayedRewards.json
  - carbon/data/PlayerRanksRewards.json
  - carbon/data/PreventLooting.json
  - carbon/data/QuarryComputer_Data.json
  - carbon/data/RaidableBases_UID.json
  - carbon/data/RaidableBases.json
  - carbon/data/RaidableBasesUI.json
  - carbon/data/SkillTree.json
  - carbon/data/TugboatPriatesPatrolPath.json
  - carbon/data/VanishPlayers.json
  - carbon/data/VehicleLicence.json
  - carbon/data/Whitelist.json

 


i was able to reproduce this. i added a couple extra checks in for validating what directory it is in before deleting

  • Like 1
SiCkNeSs

Posted

Changed Status from Pending to Fixed

Changed Fixed In to 1.0.4

dustyhansen

Posted

18 minutes ago, SiCkNeSs said:


i was able to reproduce this. i added a couple extra checks in for validating what directory it is in before deleting

So to be clear, this bot will delete files on the target server that do not exist on the source server?

That changes how I use it, so I want to make sure I understand.

SiCkNeSs

Posted

31 minutes ago, dustyhansen said:

So to be clear, this bot will delete files on the target server that do not exist on the source server?

That changes how I use it, so I want to make sure I understand.

that is how it is setup. unless they are in the files_to_ignore or directories_to_ignore

i will add a config option today/tomorrow to disable this functionality per config

dustyhansen

Posted

2 minutes ago, SiCkNeSs said:

that is how it is setup. unless they are in the files_to_ignore or directories_to_ignore

i will add a config option today/tomorrow to disable this functionality per config

oh that would be awesome, i am using it for a development server, so i want to be able to put things on there that don't get deleted

SiCkNeSs

Posted

1 hour ago, dustyhansen said:

oh that would be awesome, i am using it for a development server, so i want to be able to put things on there that don't get deleted

added

  • Like 1
1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.4k

Files Sold

Total number of files sold.

2.3m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.