GoAdmio Command Line: ftplog with /go/ftplog

/go/ftplog keeps the FTP log database up to date. It: fixquota runs this command first, so that its FTP bandwidth figures are current. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

/go/ftplog

Examples

# Update the FTP log database
/go/ftplog

# Show the latest rows (rowid order; TimeStamp is not the real time)
sqlite3 /var/lib/sqlite/ftplog.db "SELECT Date, Time, Username, Direction, FileName, FileSize FROM Ftplog ORDER BY rowid DESC LIMIT 20"

# Transfer volume per domain for a month
sqlite3 /var/lib/sqlite/ftplog.db "SELECT Domain, SUM(FileSize) FROM Ftplog WHERE Date LIKE '%Nov 2026%' GROUP BY Domain"

Output

Outcome What you get
Caught up Break... once, when the import reaches a line that is already stored. This is the normal result of most runs.
Import error Break... once, when any insert fails. The import stops there.
Lookups Nothing.

The exit code is 0.

Logging

Every run is appended to /var/log/go/ftplog.log.

See the full reference at /go/ftplog and the GoAdmio command index.

GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *