SafeQ Export Tool is a Python-based utility designed to export user data from multiple SafeQ servers simultaneously. It provides an easy-to-use way for system administrators to automate the process of exporting user information from various SafeQ installations.
- Export user data from multiple SafeQ servers in one go
- Configurable server settings through an INI file
- Automated login & CSRF token handling
- Export results saved as CSV files with timestamps
- Detailed logging for troubleshooting
- Cross-platform compatibility (Windows, macOS, Linux)
- Python 3.6 or higher
- pip (Python package installer)
-
Clone this repository or download the source code:
git clone https://github.com/yourusername/safeq-export-tool.git cd safeq-export-tool
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the script once to generate a template configuration file:
python main.py
-
Edit the generated
config.ini
file with your SafeQ server details:[Server1] BASE_URL = http://server1.example.com USERNAME = admin1 PASSWORD = password1 FILEPATH = ./downloads1 [Server2] BASE_URL = http://server2.example.com USERNAME = admin2 PASSWORD = password2 FILEPATH = ./downloads2
Add as many server sections as needed.
Run the script with the following command:
python main.py
Optional arguments:
-c
or--config
: Specify a custom configuration file path
Example:
python main.py -c /path/to/custom/config.ini
To create a standalone executable, you can use PyInstaller:
pyinstaller -F -c -i .\safeQ.ico -n safeq_exporter .\main.py
This will generate a safeq_exporter.exe
file in the dist
directory.
- If you encounter connection issues, ensure that the SafeQ servers are accessible from your network.
- Check the log output for detailed error messages and connection status.
- Verify that the credentials in the
config.ini
file are correct and have the necessary permissions to export user data.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
This tool is not officially associated with or endorsed by YSoft SafeQ. Use at your own risk and ensure you have the necessary permissions to export user data from your SafeQ installations.
If you encounter any issues or have questions, please open an issue on GitHub.